Skip to content

Commit 185b113

Browse files
committed
delete unused code from wordle
1 parent eb8b37f commit 185b113

File tree

1 file changed

+1
-137
lines changed

1 file changed

+1
-137
lines changed

testdata/wordle/main.tf

Lines changed: 1 addition & 137 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,6 @@ locals {
2828
toset(local.alphabet),
2929
local.remove_letters
3030
)
31-
32-
won = data.coder_parameter.one.value == local.correct ||
33-
data.coder_parameter.two.value == local.correct ||
34-
data.coder_parameter.three.value == local.correct ||
35-
data.coder_parameter.four.value == local.correct ||
36-
data.coder_parameter.five.value == local.correct ||
37-
data.coder_parameter.six.value == local.correct
3831
}
3932

4033
output "unmatched" {
@@ -214,133 +207,4 @@ module "check_six" {
214207
source = "./checker"
215208
correct = local.correct
216209
previous = data.coder_parameter.six[0].value
217-
}
218-
219-
#
220-
# module "word_one" {
221-
# source = "./checker"
222-
# input = data.coder_parameter.first.value
223-
# correct = local.correct
224-
# }
225-
#
226-
# data "coder_parameter" "first" {
227-
# name = "first"
228-
# display_name = "First word"
229-
# description = "Enter a 5 letter word"
230-
# type = "string"
231-
# order = 1
232-
#
233-
# validation {
234-
# regex = local.validation.regex
235-
# error = local.validation.error
236-
# }
237-
# }
238-
#
239-
# // ---
240-
# module "word_two" {
241-
# source = "./checker"
242-
# input = data.coder_parameter.second[0].value
243-
# correct = local.correct
244-
# }
245-
#
246-
# data "coder_parameter" "second" {
247-
# count = 1
248-
# # count = length(data.coder_parameter.first.value) == 5 ? 1 : 0
249-
#
250-
# name = "second"
251-
# display_name = "Second word"
252-
# description = "Previous word matches: ${module.word_one.result}"
253-
# type = "string"
254-
# order = 2
255-
#
256-
# validation {
257-
# regex = local.validation.regex
258-
# error = local.validation.error
259-
# }
260-
# }
261-
#
262-
# // ---
263-
# module "word_three" {
264-
# source = "./checker"
265-
# input = data.coder_parameter.third[0].value
266-
# correct = local.correct
267-
# }
268-
#
269-
# data "coder_parameter" "third" {
270-
# count = 1
271-
# # count = try(length(data.coder_parameter.second[0].value) == 5, false) ? 1 : 0
272-
#
273-
# name = "third"
274-
# display_name = "Third word"
275-
# description = "Previous word matches: ${module.word_two.result}"
276-
# type = "string"
277-
# order = 3
278-
#
279-
# validation {
280-
# regex = local.validation.regex
281-
# error = local.validation.error
282-
# }
283-
# }
284-
#
285-
# // ---
286-
# module "word_four" {
287-
# source = "./checker"
288-
# input = data.coder_parameter.fourth[0].value
289-
# correct = local.correct
290-
# }
291-
#
292-
# data "coder_parameter" "fourth" {
293-
# count = 1
294-
# name = "fourth"
295-
# display_name = "Fourth word"
296-
# description = "Previous word matches: ${module.word_three.result}"
297-
# type = "string"
298-
# order = 4
299-
#
300-
# validation {
301-
# regex = local.validation.regex
302-
# error = local.validation.error
303-
# }
304-
# }
305-
#
306-
# // ---
307-
# module "word_five" {
308-
# source = "./checker"
309-
# input = data.coder_parameter.fifth[0].value
310-
# correct = local.correct
311-
# }
312-
#
313-
# data "coder_parameter" "fifth" {
314-
# count = 1
315-
# name = "fifth"
316-
# display_name = "Fifth word"
317-
# description = "Previous word matches: ${module.word_four.result}"
318-
# type = "string"
319-
# order = 5
320-
#
321-
# validation {
322-
# regex = local.validation.regex
323-
# error = local.validation.error
324-
# }
325-
# }
326-
#
327-
# // ---
328-
# # module "word_six" {
329-
# # source = "./checker"
330-
# # input = data.coder_parameter.fifth.value
331-
# # correct = local.correct
332-
# # }
333-
#
334-
# data "coder_parameter" "six" {
335-
# count = 1
336-
# name = "sixth"
337-
# display_name = "Sixth word"
338-
# description = "Previous word matches: ${module.word_five.result}"
339-
# type = "string"
340-
# order = 6
341-
#
342-
# validation {
343-
# regex = local.validation.regex
344-
# error = local.validation.error
345-
# }
346-
# }
210+
}

0 commit comments

Comments
 (0)