Spaces:
Configuration error
Configuration error
EZTIME2025 commited on
Commit ·
4dd77af
1
Parent(s): d9c12b7
שיפור בניית ערים
Browse files- .github/instructions/BUILD_PLAN.md +12 -5
- game_viz.log +147 -51
- pycatan/game.py +3 -1
- pycatan/game_manager.py +40 -7
- pycatan/game_moves_3Players.txt +3 -0
- pycatan/human_user.py +9 -6
- test_city_building.py +52 -0
.github/instructions/BUILD_PLAN.md
CHANGED
|
@@ -46,8 +46,9 @@
|
|
| 46 |
- [x] error handling משופר (בסיסי)
|
| 47 |
|
| 48 |
**הערות:**
|
| 49 |
-
-
|
| 50 |
-
- מי
|
|
|
|
| 51 |
|
| 52 |
### משימה 3.2: Validation & Error Handling
|
| 53 |
**סטטוס:** 🟡 בתהליך
|
|
@@ -60,24 +61,30 @@
|
|
| 60 |
|
| 61 |
### משימה 3.3: End-to-End Testing
|
| 62 |
**סטטוס:** 🟢 בעבודה פעילה!
|
| 63 |
-
**
|
| 64 |
|
| 65 |
- [x] הרצת משחק מלא עם HumanUser
|
| 66 |
- [x] בדיקת כל סוגי הפעולות (בנייה, גלגול קוביות)
|
| 67 |
- [x] זיהוי ותיקון באגים בזמן אמת
|
| 68 |
- [x] וידוא סנכרון בין ה-Visualizations למצב המשחק
|
| 69 |
|
| 70 |
-
**תיקונים שבוצעו
|
| 71 |
- ✅ תיקון כפתור ה-i בתצוגת הווב (Building Costs modal)
|
| 72 |
- ✅ תיקון הצגת שמות שחקנים במקום "Player X" (web + console)
|
| 73 |
- ✅ מימוש מלא של קניית קלפי פיתוח (BUY_DEV_CARD)
|
| 74 |
- ✅ תיקון 2 באגים ב-game.py ו-player.py (DevCard.VictoryPoint)
|
| 75 |
- ✅ תשתית לשימוש בקלפי פיתוח עם הודעות מועילות למשתמש
|
| 76 |
- ✅ שיפור תיעוד ה-help עם הסבר מלא על כל קלפי הפיתוח
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
|
| 78 |
**מה שעובד כרגע:**
|
| 79 |
- ✨ משחק מלא עם 3 שחקנים
|
| 80 |
-
- ✨ בנייה: יישובים, כבישים, ערים
|
| 81 |
- ✨ גלגול קוביות וחלוקת משאבים
|
| 82 |
- ✨ חוק ה-7: השלכת קלפים, העברת רובר, גניבת קלף
|
| 83 |
- ✨ מסחר עם הבנק
|
|
|
|
| 46 |
- [x] error handling משופר (בסיסי)
|
| 47 |
|
| 48 |
**הערות:**
|
| 49 |
+
- ✅ **תיקון באג `add_city`** - תוקן שימוש במשתנים לא מוגדרים (15 דצמבר 2025)
|
| 50 |
+
- ✅ **מימוש בניית ערים מלא** - `_execute_build_city` עכשיו פונקציונלי (15 דצמבר 2025)
|
| 51 |
+
- מיפוי פעולות מסחר עדיין לא מומש מלא
|
| 52 |
|
| 53 |
### משימה 3.2: Validation & Error Handling
|
| 54 |
**סטטוס:** 🟡 בתהליך
|
|
|
|
| 61 |
|
| 62 |
### משימה 3.3: End-to-End Testing
|
| 63 |
**סטטוס:** 🟢 בעבודה פעילה!
|
| 64 |
+
**עדכון אחרון:** 15 דצמבר 2025
|
| 65 |
|
| 66 |
- [x] הרצת משחק מלא עם HumanUser
|
| 67 |
- [x] בדיקת כל סוגי הפעולות (בנייה, גלגול קוביות)
|
| 68 |
- [x] זיהוי ותיקון באגים בזמן אמת
|
| 69 |
- [x] וידוא סנכרון בין ה-Visualizations למצב המשחק
|
| 70 |
|
| 71 |
+
**תיקונים שבוצעו:**
|
| 72 |
- ✅ תיקון כפתור ה-i בתצוגת הווב (Building Costs modal)
|
| 73 |
- ✅ תיקון הצגת שמות שחקנים במקום "Player X" (web + console)
|
| 74 |
- ✅ מימוש מלא של קניית קלפי פיתוח (BUY_DEV_CARD)
|
| 75 |
- ✅ תיקון 2 באגים ב-game.py ו-player.py (DevCard.VictoryPoint)
|
| 76 |
- ✅ תשתית לשימוש בקלפי פיתוח עם הודעות מועילות למשתמש
|
| 77 |
- ✅ שיפור תיעוד ה-help עם הסבר מלא על כל קלפי הפיתוח
|
| 78 |
+
- ✅ **בניית ערים - תיקון מלא (15 דצמבר 2025)**:
|
| 79 |
+
- תיקון באג ב-`human_user.py` - שימוש ב-`board_definition` במקום פונקציה חסרה
|
| 80 |
+
- תיקון באג ב-`game.py` - משתנים לא מוגדרים בפונקציה `add_city`
|
| 81 |
+
- מימוש מלא של `_execute_build_city` ב-`game_manager.py`
|
| 82 |
+
- המרת הודעות שגיאה למספרי נקודות (point 44) במקום קואורדינטות
|
| 83 |
+
- הצגת הודעות שגיאה בקונסול הראשי של המשתמש
|
| 84 |
|
| 85 |
**מה שעובד כרגע:**
|
| 86 |
- ✨ משחק מלא עם 3 שחקנים
|
| 87 |
+
- ✨ בנייה: יישובים, כבישים, **ערים** ✅ (תוקן 15 דצמבר!)
|
| 88 |
- ✨ גלגול קוביות וחלוקת משאבים
|
| 89 |
- ✨ חוק ה-7: השלכת קלפים, העברת רובר, גניבת קלף
|
| 90 |
- ✨ מסחר עם הבנק
|
game_viz.log
CHANGED
|
@@ -22,7 +22,7 @@ Current Player: [1m[92m► a[0m
|
|
| 22 |
Resources: None
|
| 23 |
Buildings: Settlements: [91m0[0m, Cities: [91m0[0m, Roads: [91m0[0m
|
| 24 |
|
| 25 |
-
[
|
| 26 |
Victory Points: [97m0[0m
|
| 27 |
Resources: None
|
| 28 |
Buildings: Settlements: [91m0[0m, Cities: [91m0[0m, Roads: [91m0[0m
|
|
@@ -53,7 +53,7 @@ Current Player: [1m[92m► a[0m
|
|
| 53 |
Resources: None
|
| 54 |
Buildings: Settlements: [91m0[0m, Cities: [91m0[0m, Roads: [91m0[0m
|
| 55 |
|
| 56 |
-
[
|
| 57 |
Victory Points: [97m0[0m
|
| 58 |
Resources: None
|
| 59 |
Buildings: Settlements: [91m0[0m, Cities: [91m0[0m, Roads: [91m0[0m
|
|
@@ -86,7 +86,7 @@ Current Player: [1m[92m► b[0m
|
|
| 86 |
Resources: None
|
| 87 |
Buildings: Settlements: [92m1[0m, Cities: [91m0[0m, Roads: [91m0[0m
|
| 88 |
|
| 89 |
-
[
|
| 90 |
Victory Points: [97m0[0m
|
| 91 |
Resources: None
|
| 92 |
Buildings: Settlements: [91m0[0m, Cities: [91m0[0m, Roads: [91m0[0m
|
|
@@ -117,7 +117,7 @@ Current Player: [1m[92m► b[0m
|
|
| 117 |
Resources: None
|
| 118 |
Buildings: Settlements: [92m1[0m, Cities: [91m0[0m, Roads: [92m1[0m
|
| 119 |
|
| 120 |
-
[
|
| 121 |
Victory Points: [97m0[0m
|
| 122 |
Resources: None
|
| 123 |
Buildings: Settlements: [91m0[0m, Cities: [91m0[0m, Roads: [91m0[0m
|
|
@@ -127,15 +127,15 @@ Current Player: [1m[92m► b[0m
|
|
| 127 |
Board Tiles: 19 tiles configured
|
| 128 |
|
| 129 |
|
| 130 |
-
[1m[94m>>> Turn 2:
|
| 131 |
-
[92m✓[0m
|
| 132 |
|
| 133 |
[1m[96m==================================================[0m
|
| 134 |
[1m[96m GAME STATE [0m
|
| 135 |
[1m[96m==================================================[0m
|
| 136 |
|
| 137 |
Turn: [1m2[0m
|
| 138 |
-
Current Player: [1m[92m►
|
| 139 |
|
| 140 |
[1m[93mPLAYERS[0m
|
| 141 |
[93m-------[0m
|
|
@@ -150,7 +150,7 @@ Current Player: [1m[92m► c[0m
|
|
| 150 |
Resources: None
|
| 151 |
Buildings: Settlements: [92m1[0m, Cities: [91m0[0m, Roads: [92m1[0m
|
| 152 |
|
| 153 |
-
[1m[92m►
|
| 154 |
Victory Points: [97m1[0m
|
| 155 |
Resources: None
|
| 156 |
Buildings: Settlements: [92m1[0m, Cities: [91m0[0m, Roads: [91m0[0m
|
|
@@ -159,14 +159,14 @@ Current Player: [1m[92m► c[0m
|
|
| 159 |
[93m-----[0m
|
| 160 |
Board Tiles: 19 tiles configured
|
| 161 |
|
| 162 |
-
[92m✓[0m
|
| 163 |
|
| 164 |
[1m[96m==================================================[0m
|
| 165 |
[1m[96m GAME STATE [0m
|
| 166 |
[1m[96m==================================================[0m
|
| 167 |
|
| 168 |
Turn: [1m2[0m
|
| 169 |
-
Current Player: [1m[92m►
|
| 170 |
|
| 171 |
[1m[93mPLAYERS[0m
|
| 172 |
[93m-------[0m
|
|
@@ -181,7 +181,7 @@ Current Player: [1m[92m► c[0m
|
|
| 181 |
Resources: None
|
| 182 |
Buildings: Settlements: [92m1[0m, Cities: [91m0[0m, Roads: [92m1[0m
|
| 183 |
|
| 184 |
-
[1m[92m►
|
| 185 |
Victory Points: [97m1[0m
|
| 186 |
Resources: None
|
| 187 |
Buildings: Settlements: [92m1[0m, Cities: [91m0[0m, Roads: [92m1[0m
|
|
@@ -191,18 +191,18 @@ Current Player: [1m[92m► c[0m
|
|
| 191 |
Board Tiles: 19 tiles configured
|
| 192 |
|
| 193 |
|
| 194 |
-
[1m[94m>>> Turn 3:
|
| 195 |
|
| 196 |
📦 Resources distributed:
|
| 197 |
-
|
| 198 |
-
[92m✓[0m
|
| 199 |
|
| 200 |
[1m[96m==================================================[0m
|
| 201 |
[1m[96m GAME STATE [0m
|
| 202 |
[1m[96m==================================================[0m
|
| 203 |
|
| 204 |
Turn: [1m3[0m
|
| 205 |
-
Current Player: [1m[92m►
|
| 206 |
|
| 207 |
[1m[93mPLAYERS[0m
|
| 208 |
[93m-------[0m
|
|
@@ -217,7 +217,7 @@ Current Player: [1m[92m► c[0m
|
|
| 217 |
Resources: None
|
| 218 |
Buildings: Settlements: [92m1[0m, Cities: [91m0[0m, Roads: [92m1[0m
|
| 219 |
|
| 220 |
-
[1m[92m►
|
| 221 |
Victory Points: [97m2[0m
|
| 222 |
Resources: None
|
| 223 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m1[0m
|
|
@@ -226,14 +226,14 @@ Current Player: [1m[92m► c[0m
|
|
| 226 |
[93m-----[0m
|
| 227 |
Board Tiles: 19 tiles configured
|
| 228 |
|
| 229 |
-
[92m✓[0m
|
| 230 |
|
| 231 |
[1m[96m==================================================[0m
|
| 232 |
[1m[96m GAME STATE [0m
|
| 233 |
[1m[96m==================================================[0m
|
| 234 |
|
| 235 |
Turn: [1m3[0m
|
| 236 |
-
Current Player: [1m[92m►
|
| 237 |
|
| 238 |
[1m[93mPLAYERS[0m
|
| 239 |
[93m-------[0m
|
|
@@ -248,7 +248,7 @@ Current Player: [1m[92m► c[0m
|
|
| 248 |
Resources: None
|
| 249 |
Buildings: Settlements: [92m1[0m, Cities: [91m0[0m, Roads: [92m1[0m
|
| 250 |
|
| 251 |
-
[1m[92m►
|
| 252 |
Victory Points: [97m2[0m
|
| 253 |
Resources: None
|
| 254 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
|
@@ -284,7 +284,7 @@ Current Player: [1m[92m► b[0m
|
|
| 284 |
Resources: None
|
| 285 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m1[0m
|
| 286 |
|
| 287 |
-
[
|
| 288 |
Victory Points: [97m2[0m
|
| 289 |
Resources: None
|
| 290 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
|
@@ -315,7 +315,7 @@ Current Player: [1m[92m► b[0m
|
|
| 315 |
Resources: None
|
| 316 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
| 317 |
|
| 318 |
-
[
|
| 319 |
Victory Points: [97m2[0m
|
| 320 |
Resources: None
|
| 321 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
|
@@ -351,7 +351,7 @@ Current Player: [1m[92m► a[0m
|
|
| 351 |
Resources: None
|
| 352 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
| 353 |
|
| 354 |
-
[
|
| 355 |
Victory Points: [97m2[0m
|
| 356 |
Resources: None
|
| 357 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
|
@@ -382,7 +382,7 @@ Current Player: [1m[92m► a[0m
|
|
| 382 |
Resources: None
|
| 383 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
| 384 |
|
| 385 |
-
[
|
| 386 |
Victory Points: [97m2[0m
|
| 387 |
Resources: None
|
| 388 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
|
@@ -421,7 +421,7 @@ Current Player: [1m[92m► a[0m
|
|
| 421 |
Resources: None
|
| 422 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
| 423 |
|
| 424 |
-
[
|
| 425 |
Victory Points: [97m2[0m
|
| 426 |
Resources: None
|
| 427 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
|
@@ -452,7 +452,7 @@ Current Player: [1m[92m► a[0m
|
|
| 452 |
Resources: None
|
| 453 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
| 454 |
|
| 455 |
-
[
|
| 456 |
Victory Points: [97m2[0m
|
| 457 |
Resources: None
|
| 458 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
|
@@ -487,7 +487,7 @@ Current Player: [1m[92m► b[0m
|
|
| 487 |
Resources: None
|
| 488 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
| 489 |
|
| 490 |
-
[
|
| 491 |
Victory Points: [97m2[0m
|
| 492 |
Resources: None
|
| 493 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
|
@@ -518,7 +518,7 @@ Current Player: [1m[92m► b[0m
|
|
| 518 |
Resources: None
|
| 519 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
| 520 |
|
| 521 |
-
[
|
| 522 |
Victory Points: [97m2[0m
|
| 523 |
Resources: None
|
| 524 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
|
@@ -549,7 +549,7 @@ Current Player: [1m[92m► b[0m
|
|
| 549 |
Resources: None
|
| 550 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
| 551 |
|
| 552 |
-
[
|
| 553 |
Victory Points: [97m2[0m
|
| 554 |
Resources: None
|
| 555 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
|
@@ -559,21 +559,21 @@ Current Player: [1m[92m► b[0m
|
|
| 559 |
Board Tiles: 19 tiles configured
|
| 560 |
|
| 561 |
|
| 562 |
-
[1m[94m>>> Turn 8:
|
| 563 |
|
| 564 |
-
[1m🎲
|
| 565 |
|
| 566 |
📦 Resources distributed:
|
| 567 |
Player 1: [92mSheep[0m
|
| 568 |
Player 2: [92mWheat[0m
|
| 569 |
-
[92m✓[0m
|
| 570 |
|
| 571 |
[1m[96m==================================================[0m
|
| 572 |
[1m[96m GAME STATE [0m
|
| 573 |
[1m[96m==================================================[0m
|
| 574 |
|
| 575 |
Turn: [1m8[0m
|
| 576 |
-
Current Player: [1m[92m►
|
| 577 |
|
| 578 |
[1m[93mPLAYERS[0m
|
| 579 |
[93m-------[0m
|
|
@@ -588,7 +588,7 @@ Current Player: [1m[92m► c[0m
|
|
| 588 |
Resources: None
|
| 589 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
| 590 |
|
| 591 |
-
[1m[92m►
|
| 592 |
Victory Points: [97m2[0m
|
| 593 |
Resources: None
|
| 594 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
|
@@ -597,14 +597,14 @@ Current Player: [1m[92m► c[0m
|
|
| 597 |
[93m-----[0m
|
| 598 |
Board Tiles: 19 tiles configured
|
| 599 |
|
| 600 |
-
[92m✓[0m
|
| 601 |
|
| 602 |
[1m[96m==================================================[0m
|
| 603 |
[1m[96m GAME STATE [0m
|
| 604 |
[1m[96m==================================================[0m
|
| 605 |
|
| 606 |
Turn: [1m8[0m
|
| 607 |
-
Current Player: [1m[92m►
|
| 608 |
|
| 609 |
[1m[93mPLAYERS[0m
|
| 610 |
[93m-------[0m
|
|
@@ -619,7 +619,7 @@ Current Player: [1m[92m► c[0m
|
|
| 619 |
Resources: None
|
| 620 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
| 621 |
|
| 622 |
-
[1m[92m►
|
| 623 |
Victory Points: [97m2[0m
|
| 624 |
Resources: None
|
| 625 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
|
@@ -654,7 +654,7 @@ Current Player: [1m[92m► a[0m
|
|
| 654 |
Resources: None
|
| 655 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
| 656 |
|
| 657 |
-
[
|
| 658 |
Victory Points: [97m2[0m
|
| 659 |
Resources: None
|
| 660 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
|
@@ -685,7 +685,7 @@ Current Player: [1m[92m► a[0m
|
|
| 685 |
Resources: None
|
| 686 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
| 687 |
|
| 688 |
-
[
|
| 689 |
Victory Points: [97m2[0m
|
| 690 |
Resources: None
|
| 691 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
|
@@ -716,7 +716,7 @@ Current Player: [1m[92m► a[0m
|
|
| 716 |
Resources: None
|
| 717 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
| 718 |
|
| 719 |
-
[
|
| 720 |
Victory Points: [97m2[0m
|
| 721 |
Resources: None
|
| 722 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
|
@@ -754,7 +754,7 @@ Current Player: [1m[92m► b[0m
|
|
| 754 |
Resources: None
|
| 755 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
| 756 |
|
| 757 |
-
[
|
| 758 |
Victory Points: [97m2[0m
|
| 759 |
Resources: None
|
| 760 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
|
@@ -786,7 +786,7 @@ Current Player: [1m[92m► b[0m
|
|
| 786 |
Dev Cards: 1
|
| 787 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
| 788 |
|
| 789 |
-
[
|
| 790 |
Victory Points: [97m2[0m
|
| 791 |
Resources: None
|
| 792 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
|
@@ -817,7 +817,7 @@ Current Player: [1m[92m► b[0m
|
|
| 817 |
Resources: None
|
| 818 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m4[0m
|
| 819 |
|
| 820 |
-
[
|
| 821 |
Victory Points: [97m2[0m
|
| 822 |
Resources: None
|
| 823 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
|
@@ -848,7 +848,7 @@ Current Player: [1m[92m► b[0m
|
|
| 848 |
Resources: None
|
| 849 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m4[0m
|
| 850 |
|
| 851 |
-
[
|
| 852 |
Victory Points: [97m2[0m
|
| 853 |
Resources: None
|
| 854 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
|
@@ -858,20 +858,20 @@ Current Player: [1m[92m► b[0m
|
|
| 858 |
Board Tiles: 19 tiles configured
|
| 859 |
|
| 860 |
|
| 861 |
-
[1m[94m>>> Turn 11:
|
| 862 |
|
| 863 |
-
[1m🎲
|
| 864 |
|
| 865 |
📦 Resources distributed:
|
| 866 |
Player 3: [92mWheat, Wheat[0m
|
| 867 |
-
[92m✓[0m
|
| 868 |
|
| 869 |
[1m[96m==================================================[0m
|
| 870 |
[1m[96m GAME STATE [0m
|
| 871 |
[1m[96m==================================================[0m
|
| 872 |
|
| 873 |
Turn: [1m11[0m
|
| 874 |
-
Current Player: [1m[92m►
|
| 875 |
|
| 876 |
[1m[93mPLAYERS[0m
|
| 877 |
[93m-------[0m
|
|
@@ -886,7 +886,7 @@ Current Player: [1m[92m► c[0m
|
|
| 886 |
Resources: None
|
| 887 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m4[0m
|
| 888 |
|
| 889 |
-
[1m[92m►
|
| 890 |
Victory Points: [97m2[0m
|
| 891 |
Resources: None
|
| 892 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
|
@@ -895,14 +895,14 @@ Current Player: [1m[92m► c[0m
|
|
| 895 |
[93m-----[0m
|
| 896 |
Board Tiles: 19 tiles configured
|
| 897 |
|
| 898 |
-
[92m✓[0m
|
| 899 |
|
| 900 |
[1m[96m==================================================[0m
|
| 901 |
[1m[96m GAME STATE [0m
|
| 902 |
[1m[96m==================================================[0m
|
| 903 |
|
| 904 |
Turn: [1m11[0m
|
| 905 |
-
Current Player: [1m[92m►
|
| 906 |
|
| 907 |
[1m[93mPLAYERS[0m
|
| 908 |
[93m-------[0m
|
|
@@ -917,7 +917,7 @@ Current Player: [1m[92m► c[0m
|
|
| 917 |
Resources: None
|
| 918 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m4[0m
|
| 919 |
|
| 920 |
-
[1m[92m►
|
| 921 |
Victory Points: [97m2[0m
|
| 922 |
Resources: None
|
| 923 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
|
@@ -926,3 +926,99 @@ Current Player: [1m[92m► c[0m
|
|
| 926 |
[93m-----[0m
|
| 927 |
Board Tiles: 19 tiles configured
|
| 928 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
Resources: None
|
| 23 |
Buildings: Settlements: [91m0[0m, Cities: [91m0[0m, Roads: [91m0[0m
|
| 24 |
|
| 25 |
+
[97ms[0m
|
| 26 |
Victory Points: [97m0[0m
|
| 27 |
Resources: None
|
| 28 |
Buildings: Settlements: [91m0[0m, Cities: [91m0[0m, Roads: [91m0[0m
|
|
|
|
| 53 |
Resources: None
|
| 54 |
Buildings: Settlements: [91m0[0m, Cities: [91m0[0m, Roads: [91m0[0m
|
| 55 |
|
| 56 |
+
[97ms[0m
|
| 57 |
Victory Points: [97m0[0m
|
| 58 |
Resources: None
|
| 59 |
Buildings: Settlements: [91m0[0m, Cities: [91m0[0m, Roads: [91m0[0m
|
|
|
|
| 86 |
Resources: None
|
| 87 |
Buildings: Settlements: [92m1[0m, Cities: [91m0[0m, Roads: [91m0[0m
|
| 88 |
|
| 89 |
+
[97ms[0m
|
| 90 |
Victory Points: [97m0[0m
|
| 91 |
Resources: None
|
| 92 |
Buildings: Settlements: [91m0[0m, Cities: [91m0[0m, Roads: [91m0[0m
|
|
|
|
| 117 |
Resources: None
|
| 118 |
Buildings: Settlements: [92m1[0m, Cities: [91m0[0m, Roads: [92m1[0m
|
| 119 |
|
| 120 |
+
[97ms[0m
|
| 121 |
Victory Points: [97m0[0m
|
| 122 |
Resources: None
|
| 123 |
Buildings: Settlements: [91m0[0m, Cities: [91m0[0m, Roads: [91m0[0m
|
|
|
|
| 127 |
Board Tiles: 19 tiles configured
|
| 128 |
|
| 129 |
|
| 130 |
+
[1m[94m>>> Turn 2: s's turn[0m
|
| 131 |
+
[92m✓[0m s built a settlement
|
| 132 |
|
| 133 |
[1m[96m==================================================[0m
|
| 134 |
[1m[96m GAME STATE [0m
|
| 135 |
[1m[96m==================================================[0m
|
| 136 |
|
| 137 |
Turn: [1m2[0m
|
| 138 |
+
Current Player: [1m[92m► s[0m
|
| 139 |
|
| 140 |
[1m[93mPLAYERS[0m
|
| 141 |
[93m-------[0m
|
|
|
|
| 150 |
Resources: None
|
| 151 |
Buildings: Settlements: [92m1[0m, Cities: [91m0[0m, Roads: [92m1[0m
|
| 152 |
|
| 153 |
+
[1m[92m► s[0m
|
| 154 |
Victory Points: [97m1[0m
|
| 155 |
Resources: None
|
| 156 |
Buildings: Settlements: [92m1[0m, Cities: [91m0[0m, Roads: [91m0[0m
|
|
|
|
| 159 |
[93m-----[0m
|
| 160 |
Board Tiles: 19 tiles configured
|
| 161 |
|
| 162 |
+
[92m✓[0m s built a road
|
| 163 |
|
| 164 |
[1m[96m==================================================[0m
|
| 165 |
[1m[96m GAME STATE [0m
|
| 166 |
[1m[96m==================================================[0m
|
| 167 |
|
| 168 |
Turn: [1m2[0m
|
| 169 |
+
Current Player: [1m[92m► s[0m
|
| 170 |
|
| 171 |
[1m[93mPLAYERS[0m
|
| 172 |
[93m-------[0m
|
|
|
|
| 181 |
Resources: None
|
| 182 |
Buildings: Settlements: [92m1[0m, Cities: [91m0[0m, Roads: [92m1[0m
|
| 183 |
|
| 184 |
+
[1m[92m► s[0m
|
| 185 |
Victory Points: [97m1[0m
|
| 186 |
Resources: None
|
| 187 |
Buildings: Settlements: [92m1[0m, Cities: [91m0[0m, Roads: [92m1[0m
|
|
|
|
| 191 |
Board Tiles: 19 tiles configured
|
| 192 |
|
| 193 |
|
| 194 |
+
[1m[94m>>> Turn 3: s's turn[0m
|
| 195 |
|
| 196 |
📦 Resources distributed:
|
| 197 |
+
s: [92mOre, Wheat, Wheat[0m
|
| 198 |
+
[92m✓[0m s built a settlement
|
| 199 |
|
| 200 |
[1m[96m==================================================[0m
|
| 201 |
[1m[96m GAME STATE [0m
|
| 202 |
[1m[96m==================================================[0m
|
| 203 |
|
| 204 |
Turn: [1m3[0m
|
| 205 |
+
Current Player: [1m[92m► s[0m
|
| 206 |
|
| 207 |
[1m[93mPLAYERS[0m
|
| 208 |
[93m-------[0m
|
|
|
|
| 217 |
Resources: None
|
| 218 |
Buildings: Settlements: [92m1[0m, Cities: [91m0[0m, Roads: [92m1[0m
|
| 219 |
|
| 220 |
+
[1m[92m► s[0m
|
| 221 |
Victory Points: [97m2[0m
|
| 222 |
Resources: None
|
| 223 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m1[0m
|
|
|
|
| 226 |
[93m-----[0m
|
| 227 |
Board Tiles: 19 tiles configured
|
| 228 |
|
| 229 |
+
[92m✓[0m s built a road
|
| 230 |
|
| 231 |
[1m[96m==================================================[0m
|
| 232 |
[1m[96m GAME STATE [0m
|
| 233 |
[1m[96m==================================================[0m
|
| 234 |
|
| 235 |
Turn: [1m3[0m
|
| 236 |
+
Current Player: [1m[92m► s[0m
|
| 237 |
|
| 238 |
[1m[93mPLAYERS[0m
|
| 239 |
[93m-------[0m
|
|
|
|
| 248 |
Resources: None
|
| 249 |
Buildings: Settlements: [92m1[0m, Cities: [91m0[0m, Roads: [92m1[0m
|
| 250 |
|
| 251 |
+
[1m[92m► s[0m
|
| 252 |
Victory Points: [97m2[0m
|
| 253 |
Resources: None
|
| 254 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
|
|
|
| 284 |
Resources: None
|
| 285 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m1[0m
|
| 286 |
|
| 287 |
+
[97ms[0m
|
| 288 |
Victory Points: [97m2[0m
|
| 289 |
Resources: None
|
| 290 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
|
|
|
| 315 |
Resources: None
|
| 316 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
| 317 |
|
| 318 |
+
[97ms[0m
|
| 319 |
Victory Points: [97m2[0m
|
| 320 |
Resources: None
|
| 321 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
|
|
|
| 351 |
Resources: None
|
| 352 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
| 353 |
|
| 354 |
+
[97ms[0m
|
| 355 |
Victory Points: [97m2[0m
|
| 356 |
Resources: None
|
| 357 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
|
|
|
| 382 |
Resources: None
|
| 383 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
| 384 |
|
| 385 |
+
[97ms[0m
|
| 386 |
Victory Points: [97m2[0m
|
| 387 |
Resources: None
|
| 388 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
|
|
|
| 421 |
Resources: None
|
| 422 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
| 423 |
|
| 424 |
+
[97ms[0m
|
| 425 |
Victory Points: [97m2[0m
|
| 426 |
Resources: None
|
| 427 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
|
|
|
| 452 |
Resources: None
|
| 453 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
| 454 |
|
| 455 |
+
[97ms[0m
|
| 456 |
Victory Points: [97m2[0m
|
| 457 |
Resources: None
|
| 458 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
|
|
|
| 487 |
Resources: None
|
| 488 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
| 489 |
|
| 490 |
+
[97ms[0m
|
| 491 |
Victory Points: [97m2[0m
|
| 492 |
Resources: None
|
| 493 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
|
|
|
| 518 |
Resources: None
|
| 519 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
| 520 |
|
| 521 |
+
[97ms[0m
|
| 522 |
Victory Points: [97m2[0m
|
| 523 |
Resources: None
|
| 524 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
|
|
|
| 549 |
Resources: None
|
| 550 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
| 551 |
|
| 552 |
+
[97ms[0m
|
| 553 |
Victory Points: [97m2[0m
|
| 554 |
Resources: None
|
| 555 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
|
|
|
| 559 |
Board Tiles: 19 tiles configured
|
| 560 |
|
| 561 |
|
| 562 |
+
[1m[94m>>> Turn 8: s's turn[0m
|
| 563 |
|
| 564 |
+
[1m🎲 s rolled: 3 + 5 = [97m8[0m
|
| 565 |
|
| 566 |
📦 Resources distributed:
|
| 567 |
Player 1: [92mSheep[0m
|
| 568 |
Player 2: [92mWheat[0m
|
| 569 |
+
[92m✓[0m s rolled the dice
|
| 570 |
|
| 571 |
[1m[96m==================================================[0m
|
| 572 |
[1m[96m GAME STATE [0m
|
| 573 |
[1m[96m==================================================[0m
|
| 574 |
|
| 575 |
Turn: [1m8[0m
|
| 576 |
+
Current Player: [1m[92m► s[0m
|
| 577 |
|
| 578 |
[1m[93mPLAYERS[0m
|
| 579 |
[93m-------[0m
|
|
|
|
| 588 |
Resources: None
|
| 589 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
| 590 |
|
| 591 |
+
[1m[92m► s[0m
|
| 592 |
Victory Points: [97m2[0m
|
| 593 |
Resources: None
|
| 594 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
|
|
|
| 597 |
[93m-----[0m
|
| 598 |
Board Tiles: 19 tiles configured
|
| 599 |
|
| 600 |
+
[92m✓[0m s ended their turn
|
| 601 |
|
| 602 |
[1m[96m==================================================[0m
|
| 603 |
[1m[96m GAME STATE [0m
|
| 604 |
[1m[96m==================================================[0m
|
| 605 |
|
| 606 |
Turn: [1m8[0m
|
| 607 |
+
Current Player: [1m[92m► s[0m
|
| 608 |
|
| 609 |
[1m[93mPLAYERS[0m
|
| 610 |
[93m-------[0m
|
|
|
|
| 619 |
Resources: None
|
| 620 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
| 621 |
|
| 622 |
+
[1m[92m► s[0m
|
| 623 |
Victory Points: [97m2[0m
|
| 624 |
Resources: None
|
| 625 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
|
|
|
| 654 |
Resources: None
|
| 655 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
| 656 |
|
| 657 |
+
[97ms[0m
|
| 658 |
Victory Points: [97m2[0m
|
| 659 |
Resources: None
|
| 660 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
|
|
|
| 685 |
Resources: None
|
| 686 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
| 687 |
|
| 688 |
+
[97ms[0m
|
| 689 |
Victory Points: [97m2[0m
|
| 690 |
Resources: None
|
| 691 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
|
|
|
| 716 |
Resources: None
|
| 717 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
| 718 |
|
| 719 |
+
[97ms[0m
|
| 720 |
Victory Points: [97m2[0m
|
| 721 |
Resources: None
|
| 722 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
|
|
|
| 754 |
Resources: None
|
| 755 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
| 756 |
|
| 757 |
+
[97ms[0m
|
| 758 |
Victory Points: [97m2[0m
|
| 759 |
Resources: None
|
| 760 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
|
|
|
| 786 |
Dev Cards: 1
|
| 787 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
| 788 |
|
| 789 |
+
[97ms[0m
|
| 790 |
Victory Points: [97m2[0m
|
| 791 |
Resources: None
|
| 792 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
|
|
|
| 817 |
Resources: None
|
| 818 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m4[0m
|
| 819 |
|
| 820 |
+
[97ms[0m
|
| 821 |
Victory Points: [97m2[0m
|
| 822 |
Resources: None
|
| 823 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
|
|
|
| 848 |
Resources: None
|
| 849 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m4[0m
|
| 850 |
|
| 851 |
+
[97ms[0m
|
| 852 |
Victory Points: [97m2[0m
|
| 853 |
Resources: None
|
| 854 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
|
|
|
| 858 |
Board Tiles: 19 tiles configured
|
| 859 |
|
| 860 |
|
| 861 |
+
[1m[94m>>> Turn 11: s's turn[0m
|
| 862 |
|
| 863 |
+
[1m🎲 s rolled: 5 + 4 = [97m9[0m
|
| 864 |
|
| 865 |
📦 Resources distributed:
|
| 866 |
Player 3: [92mWheat, Wheat[0m
|
| 867 |
+
[92m✓[0m s rolled the dice
|
| 868 |
|
| 869 |
[1m[96m==================================================[0m
|
| 870 |
[1m[96m GAME STATE [0m
|
| 871 |
[1m[96m==================================================[0m
|
| 872 |
|
| 873 |
Turn: [1m11[0m
|
| 874 |
+
Current Player: [1m[92m► s[0m
|
| 875 |
|
| 876 |
[1m[93mPLAYERS[0m
|
| 877 |
[93m-------[0m
|
|
|
|
| 886 |
Resources: None
|
| 887 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m4[0m
|
| 888 |
|
| 889 |
+
[1m[92m► s[0m
|
| 890 |
Victory Points: [97m2[0m
|
| 891 |
Resources: None
|
| 892 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
|
|
|
| 895 |
[93m-----[0m
|
| 896 |
Board Tiles: 19 tiles configured
|
| 897 |
|
| 898 |
+
[92m✓[0m s proposed a trade
|
| 899 |
|
| 900 |
[1m[96m==================================================[0m
|
| 901 |
[1m[96m GAME STATE [0m
|
| 902 |
[1m[96m==================================================[0m
|
| 903 |
|
| 904 |
Turn: [1m11[0m
|
| 905 |
+
Current Player: [1m[92m► s[0m
|
| 906 |
|
| 907 |
[1m[93mPLAYERS[0m
|
| 908 |
[93m-------[0m
|
|
|
|
| 917 |
Resources: None
|
| 918 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m4[0m
|
| 919 |
|
| 920 |
+
[1m[92m► s[0m
|
| 921 |
Victory Points: [97m2[0m
|
| 922 |
Resources: None
|
| 923 |
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
|
|
|
| 926 |
[93m-----[0m
|
| 927 |
Board Tiles: 19 tiles configured
|
| 928 |
|
| 929 |
+
[91m✗[0m s built a city
|
| 930 |
+
[91mError: You don't own the settlement at point 40[0m
|
| 931 |
+
|
| 932 |
+
[1m[96m==================================================[0m
|
| 933 |
+
[1m[96m GAME STATE [0m
|
| 934 |
+
[1m[96m==================================================[0m
|
| 935 |
+
|
| 936 |
+
Turn: [1m11[0m
|
| 937 |
+
Current Player: [1m[92m► s[0m
|
| 938 |
+
|
| 939 |
+
[1m[93mPLAYERS[0m
|
| 940 |
+
[93m-------[0m
|
| 941 |
+
|
| 942 |
+
[97ma[0m
|
| 943 |
+
Victory Points: [97m2[0m
|
| 944 |
+
Resources: None
|
| 945 |
+
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
| 946 |
+
|
| 947 |
+
[97mb[0m
|
| 948 |
+
Victory Points: [97m2[0m
|
| 949 |
+
Resources: None
|
| 950 |
+
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m4[0m
|
| 951 |
+
|
| 952 |
+
[1m[92m► s[0m
|
| 953 |
+
Victory Points: [97m2[0m
|
| 954 |
+
Resources: None
|
| 955 |
+
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
| 956 |
+
|
| 957 |
+
[1m[93mBOARD[0m
|
| 958 |
+
[93m-----[0m
|
| 959 |
+
Board Tiles: 19 tiles configured
|
| 960 |
+
|
| 961 |
+
[92m✓[0m s built a city
|
| 962 |
+
|
| 963 |
+
[1m[96m==================================================[0m
|
| 964 |
+
[1m[96m GAME STATE [0m
|
| 965 |
+
[1m[96m==================================================[0m
|
| 966 |
+
|
| 967 |
+
Turn: [1m11[0m
|
| 968 |
+
Current Player: [1m[92m► s[0m
|
| 969 |
+
|
| 970 |
+
[1m[93mPLAYERS[0m
|
| 971 |
+
[93m-------[0m
|
| 972 |
+
|
| 973 |
+
[97ma[0m
|
| 974 |
+
Victory Points: [97m2[0m
|
| 975 |
+
Resources: None
|
| 976 |
+
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
| 977 |
+
|
| 978 |
+
[97mb[0m
|
| 979 |
+
Victory Points: [97m2[0m
|
| 980 |
+
Resources: None
|
| 981 |
+
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m4[0m
|
| 982 |
+
|
| 983 |
+
[1m[92m► s[0m
|
| 984 |
+
Victory Points: [97m3[0m
|
| 985 |
+
Resources: None
|
| 986 |
+
Buildings: Settlements: [92m1[0m, Cities: [92m1[0m, Roads: [92m2[0m
|
| 987 |
+
|
| 988 |
+
[1m[93mBOARD[0m
|
| 989 |
+
[93m-----[0m
|
| 990 |
+
Board Tiles: 19 tiles configured
|
| 991 |
+
|
| 992 |
+
[92m✓[0m s ended their turn
|
| 993 |
+
|
| 994 |
+
[1m[96m==================================================[0m
|
| 995 |
+
[1m[96m GAME STATE [0m
|
| 996 |
+
[1m[96m==================================================[0m
|
| 997 |
+
|
| 998 |
+
Turn: [1m11[0m
|
| 999 |
+
Current Player: [1m[92m► s[0m
|
| 1000 |
+
|
| 1001 |
+
[1m[93mPLAYERS[0m
|
| 1002 |
+
[93m-------[0m
|
| 1003 |
+
|
| 1004 |
+
[97ma[0m
|
| 1005 |
+
Victory Points: [97m2[0m
|
| 1006 |
+
Resources: None
|
| 1007 |
+
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m2[0m
|
| 1008 |
+
|
| 1009 |
+
[97mb[0m
|
| 1010 |
+
Victory Points: [97m2[0m
|
| 1011 |
+
Resources: None
|
| 1012 |
+
Buildings: Settlements: [92m2[0m, Cities: [91m0[0m, Roads: [92m4[0m
|
| 1013 |
+
|
| 1014 |
+
[1m[92m► s[0m
|
| 1015 |
+
Victory Points: [97m3[0m
|
| 1016 |
+
Resources: None
|
| 1017 |
+
Buildings: Settlements: [92m1[0m, Cities: [92m1[0m, Roads: [92m2[0m
|
| 1018 |
+
|
| 1019 |
+
[1m[93mBOARD[0m
|
| 1020 |
+
[93m-----[0m
|
| 1021 |
+
Board Tiles: 19 tiles configured
|
| 1022 |
+
|
| 1023 |
+
|
| 1024 |
+
[1m[94m>>> Turn 12: a's turn[0m
|
pycatan/game.py
CHANGED
|
@@ -197,11 +197,13 @@ class Game:
|
|
| 197 |
|
| 198 |
# changes a settlement on the board for a city
|
| 199 |
def add_city(self, point, player):
|
| 200 |
-
|
|
|
|
| 201 |
|
| 202 |
if status == Statuses.ALL_GOOD:
|
| 203 |
# checks if the player won
|
| 204 |
if self.players[player].get_VP() >= 10:
|
|
|
|
| 205 |
self.winner = player
|
| 206 |
|
| 207 |
return status
|
|
|
|
| 197 |
|
| 198 |
# changes a settlement on the board for a city
|
| 199 |
def add_city(self, point, player):
|
| 200 |
+
# Upgrade settlement to city using the point object
|
| 201 |
+
status = self.board.upgrade_settlement(player, point)
|
| 202 |
|
| 203 |
if status == Statuses.ALL_GOOD:
|
| 204 |
# checks if the player won
|
| 205 |
if self.players[player].get_VP() >= 10:
|
| 206 |
+
self.has_ended = True
|
| 207 |
self.winner = player
|
| 208 |
|
| 209 |
return status
|
pycatan/game_manager.py
CHANGED
|
@@ -383,21 +383,54 @@ class GameManager:
|
|
| 383 |
|
| 384 |
coords = action.parameters['point_coords']
|
| 385 |
|
| 386 |
-
# Get the point object from board
|
| 387 |
try:
|
| 388 |
point = self.game.board.points[coords[0]][coords[1]]
|
|
|
|
|
|
|
|
|
|
|
|
|
| 389 |
except (IndexError, TypeError):
|
| 390 |
return ActionResult.failure_result(
|
| 391 |
f"Invalid coordinates: {coords}",
|
| 392 |
"INVALID_COORDS"
|
| 393 |
)
|
| 394 |
|
| 395 |
-
#
|
| 396 |
-
|
| 397 |
-
|
| 398 |
-
|
| 399 |
-
|
| 400 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 401 |
|
| 402 |
def _execute_build_road(self, action: Action) -> ActionResult:
|
| 403 |
"""Execute road building action."""
|
|
|
|
| 383 |
|
| 384 |
coords = action.parameters['point_coords']
|
| 385 |
|
| 386 |
+
# Get the point object from board and convert coords to point ID
|
| 387 |
try:
|
| 388 |
point = self.game.board.points[coords[0]][coords[1]]
|
| 389 |
+
# Try to get the point ID for better user messages
|
| 390 |
+
from pycatan.board_definition import board_definition
|
| 391 |
+
point_id = board_definition.game_coords_to_point_id(coords[0], coords[1])
|
| 392 |
+
location_str = f"point {point_id}" if point_id else f"coordinates {coords}"
|
| 393 |
except (IndexError, TypeError):
|
| 394 |
return ActionResult.failure_result(
|
| 395 |
f"Invalid coordinates: {coords}",
|
| 396 |
"INVALID_COORDS"
|
| 397 |
)
|
| 398 |
|
| 399 |
+
# Upgrade the settlement to a city
|
| 400 |
+
status = self.game.add_city(point, action.player_id)
|
| 401 |
+
|
| 402 |
+
# Convert status to ActionResult
|
| 403 |
+
if status == Statuses.ALL_GOOD:
|
| 404 |
+
player = self.game.players[action.player_id]
|
| 405 |
+
return ActionResult.success_result(
|
| 406 |
+
f"City built at {location_str}! Victory Points: {player.get_VP()}",
|
| 407 |
+
"CITY_BUILT"
|
| 408 |
+
)
|
| 409 |
+
elif status == Statuses.ERR_NOT_EXIST:
|
| 410 |
+
return ActionResult.failure_result(
|
| 411 |
+
f"No settlement found at {location_str} to upgrade",
|
| 412 |
+
"NO_SETTLEMENT"
|
| 413 |
+
)
|
| 414 |
+
elif status == Statuses.ERR_BAD_OWNER:
|
| 415 |
+
return ActionResult.failure_result(
|
| 416 |
+
f"You don't own the settlement at {location_str}",
|
| 417 |
+
"NOT_YOUR_SETTLEMENT"
|
| 418 |
+
)
|
| 419 |
+
elif status == Statuses.ERR_UPGRADE_CITY:
|
| 420 |
+
return ActionResult.failure_result(
|
| 421 |
+
f"Already a city at {location_str}",
|
| 422 |
+
"ALREADY_CITY"
|
| 423 |
+
)
|
| 424 |
+
elif status == Statuses.ERR_CARDS:
|
| 425 |
+
return ActionResult.failure_result(
|
| 426 |
+
"Not enough resources. Need: 3 Ore, 2 Wheat",
|
| 427 |
+
"NOT_ENOUGH_RESOURCES"
|
| 428 |
+
)
|
| 429 |
+
else:
|
| 430 |
+
return ActionResult.failure_result(
|
| 431 |
+
f"Failed to build city: {status.name}",
|
| 432 |
+
status.name
|
| 433 |
+
)
|
| 434 |
|
| 435 |
def _execute_build_road(self, action: Action) -> ActionResult:
|
| 436 |
"""Execute road building action."""
|
pycatan/game_moves_3Players.txt
CHANGED
|
@@ -31,3 +31,6 @@ end
|
|
| 31 |
roll
|
| 32 |
t player a nothing for ore 2
|
| 33 |
y
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
roll
|
| 32 |
t player a nothing for ore 2
|
| 33 |
y
|
| 34 |
+
c 40
|
| 35 |
+
c 44
|
| 36 |
+
end
|
pycatan/human_user.py
CHANGED
|
@@ -278,10 +278,10 @@ class HumanUser(User):
|
|
| 278 |
try:
|
| 279 |
point = int(parts[1])
|
| 280 |
|
| 281 |
-
# Convert point to coordinates
|
| 282 |
-
coords =
|
| 283 |
if coords is None:
|
| 284 |
-
raise UserInputError(f"Invalid point number: {point}. Valid points: 1-{len(
|
| 285 |
|
| 286 |
row, index = coords
|
| 287 |
|
|
@@ -889,9 +889,12 @@ class HumanUser(User):
|
|
| 889 |
|
| 890 |
def notify_action(self, action: Action, success: bool, message: str = "") -> None:
|
| 891 |
"""Notify the user about an action result."""
|
| 892 |
-
#
|
| 893 |
-
|
| 894 |
-
|
|
|
|
|
|
|
|
|
|
| 895 |
|
| 896 |
def notify_game_event(self, event_type: str, message: str,
|
| 897 |
affected_players: Optional[List[int]] = None) -> None:
|
|
|
|
| 278 |
try:
|
| 279 |
point = int(parts[1])
|
| 280 |
|
| 281 |
+
# Convert point to coordinates using BoardDefinition
|
| 282 |
+
coords = board_definition.point_id_to_game_coords(point)
|
| 283 |
if coords is None:
|
| 284 |
+
raise UserInputError(f"Invalid point number: {point}. Valid points: 1-{len(board_definition.get_all_point_ids())}")
|
| 285 |
|
| 286 |
row, index = coords
|
| 287 |
|
|
|
|
| 889 |
|
| 890 |
def notify_action(self, action: Action, success: bool, message: str = "") -> None:
|
| 891 |
"""Notify the user about an action result."""
|
| 892 |
+
# Display success/error messages to the user in their input console
|
| 893 |
+
if message:
|
| 894 |
+
if success:
|
| 895 |
+
print(f" ✓ {message}")
|
| 896 |
+
else:
|
| 897 |
+
print(f" ✗ {message}")
|
| 898 |
|
| 899 |
def notify_game_event(self, event_type: str, message: str,
|
| 900 |
affected_players: Optional[List[int]] = None) -> None:
|
test_city_building.py
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
Test script for city building functionality.
|
| 3 |
+
"""
|
| 4 |
+
from pycatan import Game
|
| 5 |
+
from pycatan.card import ResCard
|
| 6 |
+
|
| 7 |
+
# Create game with 3 players
|
| 8 |
+
game = Game(num_of_players=3)
|
| 9 |
+
board = game.board
|
| 10 |
+
|
| 11 |
+
print("Testing City Building...")
|
| 12 |
+
print("=" * 60)
|
| 13 |
+
|
| 14 |
+
# Setup: Add a settlement for player 0
|
| 15 |
+
point = board.points[0][0]
|
| 16 |
+
print(f"\n1. Adding settlement at point [0][0] for player 0...")
|
| 17 |
+
status = game.add_settlement(player=0, point=point, is_starting=True)
|
| 18 |
+
print(f" Result: {status}")
|
| 19 |
+
|
| 20 |
+
# Give player resources for city (3 Ore, 2 Wheat)
|
| 21 |
+
print(f"\n2. Giving player 0 resources for city (3 Ore, 2 Wheat)...")
|
| 22 |
+
needed_cards = [
|
| 23 |
+
ResCard.Ore,
|
| 24 |
+
ResCard.Ore,
|
| 25 |
+
ResCard.Ore,
|
| 26 |
+
ResCard.Wheat,
|
| 27 |
+
ResCard.Wheat
|
| 28 |
+
]
|
| 29 |
+
game.players[0].add_cards(needed_cards)
|
| 30 |
+
print(f" Player 0 cards: {[str(c) for c in game.players[0].cards]}")
|
| 31 |
+
|
| 32 |
+
# Try to build a city
|
| 33 |
+
print(f"\n3. Upgrading settlement to city at point [0][0]...")
|
| 34 |
+
status = game.add_city(point=point, player=0)
|
| 35 |
+
print(f" Result: {status}")
|
| 36 |
+
|
| 37 |
+
# Check victory points
|
| 38 |
+
print(f"\n4. Checking player 0 victory points...")
|
| 39 |
+
vp = game.players[0].get_VP()
|
| 40 |
+
print(f" Victory Points: {vp}")
|
| 41 |
+
|
| 42 |
+
# Check the building type
|
| 43 |
+
print(f"\n5. Checking building at point [0][0]...")
|
| 44 |
+
building = point.building
|
| 45 |
+
if building:
|
| 46 |
+
print(f" Building type: {building.type}")
|
| 47 |
+
print(f" Building owner: {building.owner}")
|
| 48 |
+
else:
|
| 49 |
+
print(f" No building found!")
|
| 50 |
+
|
| 51 |
+
print("\n" + "=" * 60)
|
| 52 |
+
print("Test complete!")
|