mirror of
https://github.com/gabehf/go-battleship.git
synced 2026-03-15 18:26:01 -07:00
fixed some silly mistakes and bugs
This commit is contained in:
parent
0045790ec4
commit
23cc2b374f
4 changed files with 11 additions and 5 deletions
|
|
@ -242,6 +242,9 @@ func (a *AI) getGuess() (c board.Point) {
|
|||
}
|
||||
|
||||
func (a *AI) Guess(p *Player, debug bool) bool {
|
||||
board.ClearScreen()
|
||||
p.PrintEnemy()
|
||||
p.PrintFriendly()
|
||||
c := a.getGuess()
|
||||
a.Guesses = append(a.Guesses, c)
|
||||
cprint.Printf["White"]("Now the AI's time to strike...\n")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue