|
|
@ -8,7 +8,7 @@
|
|
|
|
import SwiftUI
|
|
|
|
import SwiftUI
|
|
|
|
|
|
|
|
|
|
|
|
enum AIT: String, CaseIterable, Identifiable, Hashable {
|
|
|
|
enum AIT: String, CaseIterable, Identifiable, Hashable {
|
|
|
|
case RandomAction = "IA Test"
|
|
|
|
case RandomAction = "IA Random"
|
|
|
|
case EasyTrainedAI = "IA Facile"
|
|
|
|
case EasyTrainedAI = "IA Facile"
|
|
|
|
case MediumTrainedAI = "IA Intermédiaire"
|
|
|
|
case MediumTrainedAI = "IA Intermédiaire"
|
|
|
|
|
|
|
|
|
|
|
@ -33,6 +33,10 @@ struct ParametersMenuView: View {
|
|
|
|
@State private var selectedRulesOption: Rules = .Regular
|
|
|
|
@State private var selectedRulesOption: Rules = .Regular
|
|
|
|
var body: some View {
|
|
|
|
var body: some View {
|
|
|
|
VStack(alignment: .leading) {
|
|
|
|
VStack(alignment: .leading) {
|
|
|
|
|
|
|
|
HStack(alignment: .center) {
|
|
|
|
|
|
|
|
Text("Paramètres").bold().font(.title)
|
|
|
|
|
|
|
|
}.frame(maxWidth: .infinity)
|
|
|
|
|
|
|
|
Spacer().frame(maxHeight: 30)
|
|
|
|
ToggleView()
|
|
|
|
ToggleView()
|
|
|
|
DoushiQiPicker(title: "Sélectionne une IA :",
|
|
|
|
DoushiQiPicker(title: "Sélectionne une IA :",
|
|
|
|
selectedOption: $selectedAIOption,
|
|
|
|
selectedOption: $selectedAIOption,
|
|
|
|