This file contains hidden or 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
from scene import * | |
from random import uniform | |
import sound | |
bounds = None | |
class SeaCreature: | |
def __init__(self, image_name, direction, size, speed_x, y): | |
self.image_name = image_name | |
self.direction = direction |
This file contains hidden or 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
from scene import * | |
from random import uniform | |
import sound | |
bounds = None | |
class SeaCreature: | |
def __init__(self, image_name, direction, size, speed_x, y): | |
self.image_name = image_name | |
self.direction = direction |
This file contains hidden or 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
from scene import * | |
from random import uniform | |
import sound | |
bounds = None | |
class SeaCreature: | |
def __init__(self, image_name, direction, size, speed_x, y): | |
self.image_name = image_name | |
self.direction = direction |
This file contains hidden or 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
from scene import * | |
from random import uniform | |
import sound | |
import speech | |
bounds = None | |
class SeaCreature: | |
upper_limit = 500 | |
def __init__(self, image_name, direction, size, speed_x, y): |
This file contains hidden or 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
from scene import * | |
from random import uniform | |
import sound | |
import speech | |
bounds = None | |
class SeaCreature: | |
upper_limit = 500 | |
lower_limit = 225 |
This file contains hidden or 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
from scene import * | |
from random import uniform | |
import sound | |
import speech | |
bounds = None | |
class SeaCreature: | |
upper_limit = 500 | |
lower_limit = 225 |
This file contains hidden or 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
import ui | |
pieces = [1, 2, 3, 4, 5, 6, 7, 8, 0] | |
v = ui.View(background_color=(0.50, 0.50, 0.50)) | |
board = ui.View() | |
v.add_subview(board) | |
v.present('full_screen') | |
board.frame = ((v.width-v.height)/2, 0, v.height, v.height) | |
board.border_width = 3 |
This file contains hidden or 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
import ui | |
import speech | |
def isAdjacent(row1, col1, row2, col2): | |
if abs(row1-row2) + abs(col1-col2) == 1: | |
return True | |
else: | |
return False | |
This file contains hidden or 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
import ui | |
import speech | |
border_color = (1.00, 0.50, 0.00) | |
def isAdjacent(row1, col1, row2, col2): | |
if abs(row1-row2) + abs(col1-col2) == 1: | |
return True | |
else: | |
return False |