|
|
|
@ -22,7 +22,7 @@ enum Language: String, CaseIterable, Identifiable, Hashable {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
enum Rules: String, CaseIterable, Identifiable, Hashable {
|
|
|
|
|
case Easy = "Simple"
|
|
|
|
|
case Easy = "Simplifié"
|
|
|
|
|
case Regular = "Normal"
|
|
|
|
|
var id: String { self.rawValue }
|
|
|
|
|
}
|
|
|
|
@ -32,7 +32,7 @@ struct ParametersMenuView: View {
|
|
|
|
|
@State private var selectedLanguageOption: Language = .French
|
|
|
|
|
@State private var selectedRulesOption: Rules = .Regular
|
|
|
|
|
var body: some View {
|
|
|
|
|
VStack {
|
|
|
|
|
VStack(alignment: .leading) {
|
|
|
|
|
ToggleView()
|
|
|
|
|
DoushiQiPicker(title: "Sélectionne une IA :",
|
|
|
|
|
selectedOption: $selectedAIOption,
|
|
|
|
@ -44,7 +44,7 @@ struct ParametersMenuView: View {
|
|
|
|
|
selectedOption: $selectedRulesOption,
|
|
|
|
|
options: Rules.allCases)
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}.frame(maxHeight: .infinity, alignment: .top)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|