-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
41 lines (29 loc) · 985 Bytes
/
main.py
File metadata and controls
41 lines (29 loc) · 985 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# cmgraff, scheers cmput275 LBL B2, LBL EB1
'''
Wordless
================
A word search game created with kivy.Wordless: a fast-paced word game
Authors: Craig Graff, Falon Scheers Cmput275 LBL B2, LBL EB1
Required software/environment: Kivy 1.9.0
To run the game click on the Wordless.py file and 'open with' kivy-3.4.bat
Alternately, open kivy-3.4.bat and navigate to game folder, then run:
python3 Wordless.py
'''
import kivy
kivy.require('1.9.0')
from kivy.app import App
from board import Board, MenuScreen
from kivy.uix.screenmanager import ScreenManager, Screen
class Wordless(App):
"""Base kivy application for game.
"""
def build(self):
# add screen manager and primary screens
sm = ScreenManager()
layout = Board(name='game')
menu = MenuScreen(name='menu')
sm.add_widget(layout)
sm.add_widget(menu)
return sm
if __name__ == '__main__':
Wordless().run()