Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mihaeu/gwta
https://github.com/mihaeu/gwta
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/mihaeu/gwta
- Owner: mihaeu
- License: mit
- Created: 2023-08-24T09:07:13.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-25T09:37:53.000Z (about 1 year ago)
- Last Synced: 2024-10-20T08:33:17.187Z (24 days ago)
- Language: TypeScript
- Size: 1.43 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gwta
Just a "quick" warm-up exercise 😀
## Map
![](map.svg)
## Player Turn
```puml
@startumlstart
repeat
if (is first turn?) then (yes)
group First Turn
:choose first location;
:discard to card limit;
end group
else (no)
group Phase A
:present movement options;
end group
endifgroup Phase B
switch (location type)
case (neutral or player-owned building)
if (wants to use location actions?) then (yes)
repeat
:use location action;
repeat while (are there more actions and wants to play them?) is (yes)
else (no)
:use single auxiliary;
endif
case (other player's building)
:use single auxiliary;
case (farmer)
if (help farmer?) then (yes, help farmer)
:help farmer;
else (no, use single auxiliary)
:use single auxiliary;
endif
case (Buenos Aires)
:step 1;
:step 2;
:step 3;
:step 4;
:step 5;
:step 6;
endswitch
end groupgroup Phase C
:discard or draw to card limit;
end grouprepeat while (is game over?) is (no)
-> yes;'switch (test?)
'case ( condition A )
' :Text 1;
'case ( condition B )
' :Text 2;
'case ( condition C )
' :Text 3;
'case ( condition D )
' :Text 4;
'case ( condition E )
' :Text 5;
'endswitchstop
@enduml
```### Dummy Code for option handling
```
do
(re-)calculate options
filter options that have already been taken
if options contain only location options or are move options and player has objective cards
add objective card options
if player has exchange tokens
add exchange tokens to options
if option is not an exchange token or objective card
add passing option
resolve option
add option id to options taken
while there are sub options or player passes
```## Roadmap
- ✅️ Buildings
- ✅️ Neutral Building A
- ✅ Neutral Building B
- ✅ Neutral Building C
- ✅ Neutral Building D
- ️✅ Neutral Building E
- ️✅ Neutral Building F
- ✅️ Neutral Building G
- ✅️ Neutral Building H
- ✅️ Player Building 1A
- ✅️ Player Building 2A
- ✅️ Player Building 3A
- ✅ Player Building 4A
- ✅ Player Building 5A
- ✅ Player Building 6A
- ✅ Player Building 7A
- ✅ Player Building 8A
- ✅ Player Building 9A
- ✅ Player Building 10A
- ✅ Player Building 1B
- ✅️ Player Building 2B
- ✅️ Player Building 3B
- ✅ Player Building 4B
- ✅ Player Building 5B
- ✅ Player Building 6B
- ✅ Player Building 7B
- ✅ Player Building 8B
- ✅ Player Building 9B
- ✅ Player Building 10B
- ⚠️ Mechanics
- ⚠️ Movement
- ❌ leave coin on farmers
- ❌ pay players when passing over hands
- ❌ Train Tracks
- ❌ Station Masters
- ❌ End of track situations
- ❌ Move backward
- ✅ Objective Cards
- ✅ immediate impact
- ✅ playable
- ✅ endgame scoring
- ⚠️ Buying cow combinations (allow buying of multiple cows and filling cow market)
- ✅ Grain
- ✅ Buenos Aires
- ✅ Extra delivery
- ✅ Refill cow market
- ✅ Sail to ports
- ✅ choose ship from available ships
- ✅ choose token to upgrade
- ✅ refill ships when triggered
- ✅ sail ships
- ✅ score ships
- ✅ Actions
- ✅ Auxiliary
- ✅ Double Auxiliary
- ✅ Risk location options
- ✅ Card and movement limit
- ✅ Game seeding
- ✅ Discard start cards > 4
- ⚠️ Game end
- ✅ The round is finished after the job market token reaches the end
- ⚠️ End game scoring
- ✅ Certificates
- ✅ player board
- ✅ buenos aires
- ✅ Exhaustion cards
- ✅ buenos aires
- ✅ player board
- ✅ end game rating
- ✅️ Exchange tokens
- ✅ gain
- ✅ use as action
- ⚠️ Hiring workers
- ✅ should not be possible if player already has 6 of a type
- ⚠️ hiring effects
- ❌ last effect of machinist
- ⚠️ Grain
- ❌ consistent grain limitation (only present gain grain option if player has less than 8)## Ideas
### Ideas
- cows
- buildings
- locations
- objectives
- exhaustion cards
- exchange tokens
- workers
- farmers