Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def draw(game:Array[Int]):Unit = {
- for (i <- 0 to 2) {
- if (game(i) == -1) print('o')
- else if(game(i) == 0) print('.')
- else if(game(i) == 1) print('x')
- }
- print("\n")
- for (i <- 3 to 5) {
- if (game(i) == -1) print('o')
- else if(game(i) == 0) print('.')
- else if(game(i) == 1) print('x')
- }
- print("\n")
- for (i <- 6 to 8) {
- if (game(i) == -1) print('o')
- else if(game(i) == 0) print('.')
- else if(game(i) == 1) print('x')
- }
- println("\n")
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement