Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
74f51f5
add basic README for tutorial folder
edwardchalstrey1 Dec 17, 2025
065b947
fix README
edwardchalstrey1 Dec 17, 2025
1153986
cover cases where the probability is not in the expected "numerator/d…
edwardchalstrey1 Dec 17, 2025
067f773
add ability to hide action labels in gambit_layout and core functions
edwardchalstrey1 Dec 17, 2025
1d7a4eb
clarify determine_node_level function workings
edwardchalstrey1 Dec 17, 2025
db06231
Add shared_terminal_depth
edwardchalstrey1 Dec 17, 2025
b399e7e
update spacing for tiny hanabi example
edwardchalstrey1 Dec 17, 2025
bdd508c
add colors
edwardchalstrey1 Dec 17, 2025
5149984
combine level and drawnode functions to get colors applied correctly
edwardchalstrey1 Dec 17, 2025
2286162
color nodes based on the information set player
edwardchalstrey1 Dec 17, 2025
008db7a
ensure player labels are not included when node part of infoset
edwardchalstrey1 Dec 17, 2025
304c3a3
save outputs
edwardchalstrey1 Dec 17, 2025
464001b
color edges based on parent node player colors
edwardchalstrey1 Dec 17, 2025
b84e40b
apply chance node color to edges
edwardchalstrey1 Dec 18, 2025
ecfbe8b
node outlines have same color as fill
edwardchalstrey1 Dec 18, 2025
e1e2d2f
ensure chance node label coloring
edwardchalstrey1 Dec 18, 2025
8abcbd4
add edge color to action label in level function
edwardchalstrey1 Dec 18, 2025
f6c20df
group color relevant code at top of core.py
edwardchalstrey1 Dec 18, 2025
b4fedff
add arg to switch color schemes
edwardchalstrey1 Dec 18, 2025
3fd1537
retain red rectange with black border for chance nodes in default col…
edwardchalstrey1 Dec 18, 2025
69a1f75
save outputs
edwardchalstrey1 Dec 18, 2025
eb7aa3c
save outputs
edwardchalstrey1 Dec 18, 2025
d005073
draw nodes on top of edges
edwardchalstrey1 Dec 18, 2025
7049734
gambit color scheme
edwardchalstrey1 Dec 18, 2025
e3c614f
add edge_thickness parameter
edwardchalstrey1 Dec 18, 2025
91a6f17
add legend
edwardchalstrey1 Dec 18, 2025
9937385
position legend
edwardchalstrey1 Dec 18, 2025
dd78104
ensure scale factor does not affect legend
edwardchalstrey1 Dec 18, 2025
51dd8f3
add option to adjust action label position
edwardchalstrey1 Dec 18, 2025
43dbff8
tiny hanabi looking good
edwardchalstrey1 Dec 18, 2025
fc35ed3
simplify test
edwardchalstrey1 Dec 18, 2025
23f4128
Merge pull request #29 from gambitproject/add-colors
edwardchalstrey1 Dec 18, 2025
9cf9fa5
ensure tests always run
edwardchalstrey1 Dec 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ name: Test

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
test:
Expand Down
58 changes: 58 additions & 0 deletions games/efg/tiny_hanabi.efg
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
EFG 2 R "tiny_hanabi()" { "Pl0" "Pl1" }
""

c "" 1 "" { "d0" 0.5000000000000000 "d1" 0.5000000000000000 } 0
c "p0:d0" 2 "" { "d0" 0.5000000000000000 "d1" 0.5000000000000000 } 0
p "" 1 1 "" { "p0a0" "p0a1" "p0a2" } 0
p "" 2 1 "" { "p1a0" "p1a1" "p1a2" } 0
t "" 1 "" { 10.0, 10.0 }
t "" 2 "" { 0.0, 0.0 }
t "" 3 "" { 0.0, 0.0 }
p "" 2 2 "" { "p1a0" "p1a1" "p1a2" } 0
t "" 4 "" { 4.0, 4.0 }
t "" 5 "" { 8.0, 8.0 }
t "" 6 "" { 4.0, 4.0 }
p "" 2 3 "" { "p1a0" "p1a1" "p1a2" } 0
t "" 7 "" { 10.0, 10.0 }
t "" 8 "" { 0.0, 0.0 }
t "" 9 "" { 0.0, 0.0 }
p "" 1 1 "" { "p0a0" "p0a1" "p0a2" } 0
p "" 2 4 "" { "p1a0" "p1a1" "p1a2" } 0
t "" 10 "" { 0.0, 0.0 }
t "" 11 "" { 0.0, 0.0 }
t "" 12 "" { 10.0, 10.0 }
p "" 2 5 "" { "p1a0" "p1a1" "p1a2" } 0
t "" 13 "" { 4.0, 4.0 }
t "" 14 "" { 8.0, 8.0 }
t "" 15 "" { 4.0, 4.0 }
p "" 2 6 "" { "p1a0" "p1a1" "p1a2" } 0
t "" 16 "" { 0.0, 0.0 }
t "" 17 "" { 0.0, 0.0 }
t "" 18 "" { 10.0, 10.0 }
c "p0:d1" 3 "" { "d0" 0.5000000000000000 "d1" 0.5000000000000000 } 0
p "" 1 2 "" { "p0a0" "p0a1" "p0a2" } 0
p "" 2 1 "" { "p1a0" "p1a1" "p1a2" } 0
t "" 19 "" { 0.0, 0.0 }
t "" 20 "" { 0.0, 0.0 }
t "" 21 "" { 10.0, 10.0 }
p "" 2 2 "" { "p1a0" "p1a1" "p1a2" } 0
t "" 22 "" { 4.0, 4.0 }
t "" 23 "" { 8.0, 8.0 }
t "" 24 "" { 4.0, 4.0 }
p "" 2 3 "" { "p1a0" "p1a1" "p1a2" } 0
t "" 25 "" { 0.0, 0.0 }
t "" 26 "" { 0.0, 0.0 }
t "" 27 "" { 0.0, 0.0 }
p "" 1 2 "" { "p0a0" "p0a1" "p0a2" } 0
p "" 2 4 "" { "p1a0" "p1a1" "p1a2" } 0
t "" 28 "" { 10.0, 10.0 }
t "" 29 "" { 0.0, 0.0 }
t "" 30 "" { 0.0, 0.0 }
p "" 2 5 "" { "p1a0" "p1a1" "p1a2" } 0
t "" 31 "" { 4.0, 4.0 }
t "" 32 "" { 8.0, 8.0 }
t "" 33 "" { 4.0, 4.0 }
p "" 2 6 "" { "p1a0" "p1a1" "p1a2" } 0
t "" 34 "" { 10.0, 10.0 }
t "" 35 "" { 0.0, 0.0 }
t "" 36 "" { 0.0, 0.0 }
Loading