Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -9,6 +9,11 @@ wildlife_tokens = ['π»', 'π¦
', 'π', 'π¦', 'πΏοΈ']
|
|
9 |
players = ['Player 1', 'Player 2']
|
10 |
save_file = 'cascadia_game_state.csv'
|
11 |
|
|
|
|
|
|
|
|
|
|
|
12 |
# Function to load game state from CSV
|
13 |
def load_game_state():
|
14 |
if os.path.exists(save_file):
|
|
|
9 |
players = ['Player 1', 'Player 2']
|
10 |
save_file = 'cascadia_game_state.csv'
|
11 |
|
12 |
+
# Scoring Function
|
13 |
+
def calculate_score(habitat, wildlife):
|
14 |
+
# Example scoring logic: 10 points if they match, else 1 point
|
15 |
+
return 10 if habitat == wildlife else 1
|
16 |
+
|
17 |
# Function to load game state from CSV
|
18 |
def load_game_state():
|
19 |
if os.path.exists(save_file):
|