Example #1
0
def game_init():
    game = Game()

    # Make the status start
    game.no = 0
    game.status = ""
    game.turn = 0

    # Make the bomb and the wall init
    game.bomb = '0' * 4 * 4
    game.wall = '0' * 4 * 4

    # Random the Colors
    temp_color = list(color)
    random.shuffle(temp_color)
    game.colors = ";".join(temp_color)
    game.save()

    return game