Flipping bits game: Difference between revisions
→{{header|Kotlin}}: Amended to ensure initial board is not the same as the target which forgot to do originally.
(→{{header|Kotlin}}: Marked incorrect.) |
(→{{header|Kotlin}}: Amended to ensure initial board is not the same as the target which forgot to do originally.) |
||
Line 1,832:
fun main(args: Array<String>) {
// initialize board and ensure it differs from the target i.e. game not already over!
initBoard()▼
do {
▲ initBoard()
}
while(gameOver())
printBoard("TARGET", true)
printBoard("OPENING BOARD")
|