Beispiel #1
0
func getShipColorOnShootPage(field *engine.Field, player *engine.Player) string {
	if !field.IsHit && field.GetPlayerId() == player.Id {
		return CELL_PLAYER_COLOR
	}
	return getShipColor(field)
}