-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.v
39 lines (33 loc) · 777 Bytes
/
main.v
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Copyright 2022 MrsHerobrine
module main
import game
import os
fn main() {
mut game := game.Game{}
if os.args.len < 2 {
game.game()
} else {
match os.args[1] {
'about' {
println('vordle, © 2022 mrsherobrine. Licensed under MIT.')
}
'help' {
println('need help playing the game?')
println('you fill in 5 letter words')
println('if the letter is in the word, it\'ll become yellow')
println('if the letter is in the right spot, it\'ll become green')
println('if it\'s not the right letter, it\'ll be gray')
println('the goal is to guess the word within 6 turns')
}
'dict' {
game.dictionary = true
game.game()
}
'dictionary' {
game.dictionary = true
game.game()
}
else { game.game() }
}
}
}