Skip to content
Snippets Groups Projects
Commit 00d3a0a6 authored by jftgƒ's avatar jftgƒ
Browse files

rien

parent 9537362f
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@
objects = {
/* Begin PBXBuildFile section */
157E41D92A1D04E400E6DE57 /* zadi.jpeg in Resources */ = {isa = PBXBuildFile; fileRef = 157E41D82A1D04E400E6DE57 /* zadi.jpeg */; };
157E41DB2A1D136300E6DE57 /* zadi.jpeg in Resources */ = {isa = PBXBuildFile; fileRef = 157E41DA2A1D136300E6DE57 /* zadi.jpeg */; };
BF3C480E2A0A1FCA00CE128F /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = BF3C480D2A0A1FCA00CE128F /* AppDelegate.swift */; };
BF3C48102A0A1FCA00CE128F /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = BF3C480F2A0A1FCA00CE128F /* SceneDelegate.swift */; };
BF3C48122A0A1FCA00CE128F /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BF3C48112A0A1FCA00CE128F /* ViewController.swift */; };
......@@ -42,7 +42,7 @@
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
157E41D82A1D04E400E6DE57 /* zadi.jpeg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = zadi.jpeg; path = ../../zadi.jpeg; sourceTree = "<group>"; };
157E41DA2A1D136300E6DE57 /* zadi.jpeg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = zadi.jpeg; path = ../../zadi.jpeg; sourceTree = "<group>"; };
BF3C480A2A0A1FCA00CE128F /* Pendu.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Pendu.app; sourceTree = BUILT_PRODUCTS_DIR; };
BF3C480D2A0A1FCA00CE128F /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
BF3C480F2A0A1FCA00CE128F /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; };
......@@ -116,7 +116,7 @@
BF3C48192A0A1FCD00CE128F /* Assets.xcassets */,
BF3C481B2A0A1FCD00CE128F /* LaunchScreen.storyboard */,
BF3C481E2A0A1FCD00CE128F /* Info.plist */,
157E41D82A1D04E400E6DE57 /* zadi.jpeg */,
157E41DA2A1D136300E6DE57 /* zadi.jpeg */,
BF3C48162A0A1FCA00CE128F /* Pendu.xcdatamodeld */,
D082CCC82A0A33D600D97981 /* GameEngine.swift */,
BF3C48422A0A3CFF00CE128F /* GameEngineTests.swift */,
......@@ -246,8 +246,8 @@
buildActionMask = 2147483647;
files = (
BF3C481D2A0A1FCD00CE128F /* LaunchScreen.storyboard in Resources */,
157E41D92A1D04E400E6DE57 /* zadi.jpeg in Resources */,
BF3C481A2A0A1FCD00CE128F /* Assets.xcassets in Resources */,
157E41DB2A1D136300E6DE57 /* zadi.jpeg in Resources */,
BF3C48152A0A1FCA00CE128F /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
......
......@@ -13,7 +13,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
func application(_ application: UIApplication, didFinishLaunchingWithOptions
launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
return true
}
......
......@@ -16,7 +16,7 @@
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" image="zadi.jpeg" translatesAutoresizingMaskIntoConstraints="NO" id="pv2-ee-Khp">
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" image="hqdefault.jpeg" translatesAutoresizingMaskIntoConstraints="NO" id="pv2-ee-Khp">
<rect key="frame" x="0.0" y="-43" width="414" height="319"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
</imageView>
......@@ -91,7 +91,7 @@
</scene>
</scenes>
<resources>
<image name="zadi.jpeg" width="1928" height="1208"/>
<image name="hqdefault.jpeg" width="480" height="360"/>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
......
......@@ -8,7 +8,7 @@ class ViewController: UIViewController, UIPickerViewDataSource, UIPickerViewDele
@IBOutlet weak var choixNiv: UISegmentedControl!
let pickerData = ["Animals", "Sports", "Food", "Cities", "Colors"]
let gameEngine : GameEngine = GameEngine()
override func viewDidLoad() {
super.viewDidLoad()
choixTheme.dataSource = self
......@@ -34,6 +34,10 @@ class ViewController: UIViewController, UIPickerViewDataSource, UIPickerViewDele
print("Thème: \(theme)")
// Ajoutez votre code supplémentaire ici
let difficulty = niveau ?? ""
let word = gameEngine.WordToGuess(theme: theme, difficulty: difficulty)
print("Mot à deviner: \(word)")
}
// MARK: - UIPickerViewDataSource
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment