-
-
Save daleth90/6bd1208461393d0916b7ed6402095b04 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Zenject; | |
public class OthelloGame : IInitializable { | |
private readonly OthelloBoardModel othelloBoard; | |
public OthelloGame( OthelloBoardModel othelloBoard ) { | |
this.othelloBoard = othelloBoard; | |
} | |
public void Initialize() { | |
StartNewGame(); | |
} | |
public void StartNewGame() { | |
othelloBoard.SetSide( Disk.DARK ); | |
othelloBoard.TryPlaceDisk( 4, 5 ); | |
othelloBoard.TryPlaceDisk( 5, 4 ); | |
othelloBoard.SetSide( Disk.LIGHT ); | |
othelloBoard.TryPlaceDisk( 4, 4 ); | |
othelloBoard.TryPlaceDisk( 5, 5 ); | |
othelloBoard.SetSide( Disk.DARK ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment