Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First Beta: Spice Islands #171

Open
wants to merge 42 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
9166cc4
Hello World
JorenC Feb 16, 2023
73d14e4
7 edges
JorenC Feb 16, 2023
6f4fe13
HellowWorld2
JorenC Feb 16, 2023
778df1a
First Working Version
JorenC Feb 16, 2023
bcae3b0
Next Step
JorenC Feb 16, 2023
8636d1e
Done-ish
JorenC Feb 16, 2023
89782d1
Updated YML file
JorenC Feb 21, 2023
cd3e827
Build Anywhere
JorenC Feb 21, 2023
a0910ae
Update bindata.go
JorenC Feb 21, 2023
d84952c
Update Hundred units
JorenC Feb 21, 2023
1f43ac8
Merge branch 'spiceislands' of https://github.com/JorenC/godip into s…
JorenC Feb 21, 2023
6b4d8fd
Add buildanywhere
JorenC Feb 21, 2023
e9f162f
Map 100% + bindata
JorenC Feb 21, 2023
65c050a
MOVE EMPIRES DOWN
JorenC Feb 21, 2023
4e5b143
Add hundred units & fix empires
JorenC Feb 21, 2023
7827101
Add ThreeKingdoms
JorenC Feb 21, 2023
fef6334
Merge branch 'spiceislands' of https://github.com/JorenC/godip into s…
JorenC Feb 21, 2023
a47bdd1
Change units to Sengoku
JorenC Feb 21, 2023
87a2fa9
Add South America
JorenC Feb 21, 2023
786e4f8
Merge branch 'spiceislands' of https://github.com/JorenC/godip into s…
JorenC Feb 21, 2023
c49c5bc
Remove SouthAmerica (buggy)
JorenC Feb 21, 2023
0567f6b
Split Anding and Hedong province - bugfix
JorenC Feb 21, 2023
7a72b73
Fix missing SC
JorenC Feb 21, 2023
9221221
Fix missing SC
JorenC Feb 21, 2023
809db83
Fix two provinces being mishandled by the greedy algorithm
JorenC Feb 21, 2023
1289770
Remove all except Spice Islands (buggy)
JorenC Feb 21, 2023
556e73a
FINISHED
JorenC Feb 21, 2023
2a35f87
Restore linux tests
JorenC Feb 21, 2023
edc6eab
Work in progress
JorenC Feb 22, 2023
f70b3b6
Map resized and working
JorenC Mar 5, 2023
850637a
Coastal Provinces Dawei
JorenC Mar 5, 2023
ffef11e
Coasts for Chaiya and Dawei
JorenC Mar 5, 2023
4703b16
Finished coasts. Now, build anywhere!
JorenC Mar 5, 2023
de35f07
map 100%
JorenC Mar 5, 2023
c2cb358
Build anywhere and test written. Testing...
JorenC Mar 5, 2023
abe8767
TEST PASSED. Ready to Pull
JorenC Mar 5, 2023
1b89ead
Updated map. Added WhiteSCs
JorenC Mar 7, 2023
6ba4759
Embedded Font
JorenC Mar 7, 2023
2001f8b
Fix Build Anywhere
JorenC Mar 7, 2023
ad4aebc
Replace position embedded font
JorenC Mar 7, 2023
6c75f6c
Add colours
JorenC Mar 7, 2023
51b783b
Turn draw_maps off
JorenC Mar 7, 2023
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
139 changes: 139 additions & 0 deletions variants/beta/spiceislands/bindata.go

Large diffs are not rendered by default.

423 changes: 423 additions & 0 deletions variants/beta/spiceislands/spiceislands.go

Large diffs are not rendered by default.

48 changes: 48 additions & 0 deletions variants/beta/spiceislands/spiceislands_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
package spiceislands

import (
"testing"
"time"

"github.com/zond/godip"
"github.com/zond/godip/orders"
"github.com/zond/godip/state"

tst "github.com/zond/godip/variants/testing"
)

func init() {
godip.Debug = true
}

func startState(t *testing.T) *state.State {
judge, err := SpiceIslandsStart()
if err != nil {
t.Fatalf("%v", err)
}
return judge
}

func TestSpiceIslandsBuildAnywhere(t *testing.T) {
judge := startState(t)

// Give Brunei an extra SC in Sambas.
judge.SetSC("sab", Brunei)

// Spring movement
judge.SetOrder("bru", orders.Move("bru", "neg"))
judge.Next()
// Spring retreat
judge.Next()
// Fall movement
judge.SetOrder("tun", orders.Move("tun", "kut"))
judge.Next()
// Fall retreat
judge.Next()

// Fall adjustment - Try to build a new Army in Sambas.
judge.SetOrder("sab", orders.BuildAnywhere("sab", godip.Army, time.Now()))
judge.Next()
// Check that it was successful.
tst.AssertUnit(t, judge, "sab", godip.Unit{godip.Army, Brunei})
}
4 changes: 4 additions & 0 deletions variants/beta/spiceislands/svg/Brunei.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
74 changes: 74 additions & 0 deletions variants/beta/spiceislands/svg/army.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading