예제 #1
0
def main():

    window = Window('Memory', 500, 400)
    window.set_auto_update(False)
    game = Game(window)
    game.play()
    window.close()
예제 #2
0
def main():

    window = Window('Exemplar Graphics 4', 500, 400)
    window.set_auto_update(False)
    game = Game(window)
    game.play()
    window.close()
예제 #3
0
def main():

    window = Window('Fox Bunny Chase', 500, 400)
    window.set_auto_update(False)
    game = Game(window)
    game.play()
    window.close()
예제 #4
0
def main():

    window = Window('PARK', 1500, 800)
    window.set_auto_update(False)
    map = Map(window)
    #pass map to car
    map.play()
예제 #5
0
파일: pong.py 프로젝트: HaochenGou/pong
def main():
   window_wide=500
   window_height=400
   window = Window('Pong', window_wide, window_height)
   window.set_auto_update(False)
   game = Game(window)
   game.play()
   window.close()
예제 #6
0
def main():
    # Creates the game window and game, and runs game

    window = Window('Tic Tac Toe', 500, 400)
    window.set_auto_update(False)
    game = Game(window)
    game.play()
    window.close()
예제 #7
0
def main():
    # create window
    window = Window('Pong V3', 500, 400)

    # play game
    window.set_auto_update(False)
    game = Game(window)
    game.play()
    window.close()
예제 #8
0
def main():
    
    # Create our game window and game, then play
    # until a game end condition is met.
    window = Window('Poke the Dots', 500, 400)
    window.set_auto_update(False)
    game = Game(window)
    game.play()
    window.close()
예제 #9
0
파일: pong.py 프로젝트: avj99/Pong
def main():
    #window attributes
    window_width = 500
    window_height = 400    
    window = Window('Pong', window_width, window_height)
    window.set_auto_update(False)
    
    
    game = Game(window)
    game.play()
    window.close()
예제 #10
0
def main():

    window = Window('Tic Tac Toe', 500, 400)
    # The following statement needs to be included as we are doing
    # window update in the code instead of having uagame do the update
    window.set_auto_update(False)
    # create Game object using window as argument
    game = Game(window)
    # Play the Game object
    game.play()
    # Close the window
    window.close()
예제 #11
0
def main():
    # create the window
    title = 'Poke THe Dots'
    width = 500
    height = 400
    window = Window(title, width, height)
    window.set_auto_update(False)
    # create the Game object
    game = Game(window)
    # play the game
    game.play()
    # close the window
    window.close()
예제 #12
0
def main():
    # create window
    title = 'Poke the Dot'
    width = 500
    height = 400
    window = Window(title, width, height)
    window.set_auto_update(False)
    # create the Game Object
    # calls the init method
    game = Game(window)  # call a function that has the same name as the class
    #play the game
    game.play()
    # close the window
    window.close()
예제 #13
0
def main():
    #create window
    title = 'Pong'
    width = 500
    height = 400
    window = Window(title, width, height)
    # The following statement needs to be included as we are doing
    # window update in the code instead of having uagame do the update
    window.set_auto_update(False)
    # create Game object using window as argument
    game = Game(window)
    # Play the Game object
    game.play()
    # Close the window
    window.close()
예제 #14
0
파일: quadris.py 프로젝트: MPARASHA/Quadris
def main():
    # Main Algorithm
    # returns nothing

    # create the window
    title = 'QUADRIS'
    width = 420
    height = 640
    window = Window(title, width, height)  # creating a Window object
    # initializing ingame music
    pygame.mixer.pre_init(44110, 16, 2, 4096)
    pygame.mixer.music.load("Automation.mp3")
    pygame.mixer.music.set_volume(0.5)  # 0.5
    pygame.mixer.music.play(-1)
    window.set_auto_update(False)
    # create the Game object
    game = Game(window)
    # play the game
    game.play()
    # close the window
    window.close()
예제 #15
0
    #               ['4','','','','','','2','1',''],
    #               ['','9','','5','','','','',''],
    #               ['','5','','','4','','3','','6'],
    #               ['','2','9','','','','','','8'],
    #               ['','','4','6','9','','1','7','3'],
    #               ['','','','','','1','','','4']
    #               ]
    test_board = [['H', 'G', 'F', 'I', '', '', '', '', ''],
                  ['', 'A', '', '', '', 'F', '', '', ''],
                  ['', 'D', '', '', '', 'E', 'H', '', ''],
                  ['D', '', '', '', '', '', 'B', 'A', ''],
                  ['', 'I', '', 'E', '', '', '', '', ''],
                  ['', 'E', '', '', 'D', '', 'C', '', 'F'],
                  ['', 'B', 'I', '', '', '', '', '', 'H'],
                  ['', '', 'D', 'F', 'I', '', 'A', 'G', 'C'],
                  ['', '', '', '', '', 'A', '', '', 'D']]

    test_window = Window("Test Sudoku", 500, 500)
    test_window.set_auto_update(False)
    # test_game = Sudoku(test_window, 3, '123456789')
    test_game = Sudoku(test_window, 3, 'ABCDEFGHI')

    # generate the test board
    for row in range(len(test_board)):
        for col in range(len(test_board[row])):
            if test_board[row][col]:
                test_game.manually_set_cell(row, col, test_board[row][col])

    test_game.play()
    pg.quit()
예제 #16
0
def main():
    window = Window('Poke the Dots', 500, 400)
    window.set_auto_update(False)
    game = Game(window)
    game.play()
    window.close()