Skip to content

Commit

Permalink
Merge branch 'master' of github.com:zond/godip
Browse files Browse the repository at this point in the history
  • Loading branch information
zond committed Mar 28, 2020
2 parents 3638776 + f2f3536 commit 47d64d4
Show file tree
Hide file tree
Showing 42 changed files with 5,974 additions and 3,292 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ To remove these attributes from the svg use one of the [methods on this page](ht

To prepare the svg file for use by go, the tool [go-bindata](https://github.com/jteeuwen/go-bindata) can be used. For example the command `go-bindata -pkg variants ./svg` will convert all assets in the svg directory into a script in the package "variants".

#### Map style

The Classical map is based on an [original work by trampolinebears](https://www.reddit.com/r/diplomacy/comments/8gx4ao/diplomacy_map/).

![Godip Classical Map](variants/classical/svg/map.svg)

### Algorithm

Heavily inspired by [The Math of Adjudication](http://www.diplom.org/Zine/S2009M/Kruijswijk/DipMath_Chp1.htm) by Lucas Kruijswijk.
Expand Down
2 changes: 1 addition & 1 deletion variants/ancientmediterranean/ancientmediterranean.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ var AncientMediterraneanVariant = common.Variant{
SVGMap: func() ([]byte, error) {
return Asset("svg/ancientmediterraneanmap.svg")
},
SVGVersion: "3",
SVGVersion: "4",
SVGUnits: map[godip.UnitType]func() ([]byte, error){
godip.Army: func() ([]byte, error) {
return classical.Asset("svg/army.svg")
Expand Down
10 changes: 4 additions & 6 deletions variants/ancientmediterranean/bindata.go

Large diffs are not rendered by default.

62 changes: 29 additions & 33 deletions variants/ancientmediterranean/svg/ancientmediterraneanmap.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions variants/canton/bindata.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion variants/canton/canton.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ var CantonVariant = common.Variant{
SVGMap: func() ([]byte, error) {
return Asset("svg/cantonmap.svg")
},
SVGVersion: "3",
SVGVersion: "4",
SVGUnits: map[godip.UnitType]func() ([]byte, error){
godip.Army: func() ([]byte, error) {
return classical.Asset("svg/army.svg")
Expand Down
171 changes: 115 additions & 56 deletions variants/canton/svg/cantonmap.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
393 changes: 311 additions & 82 deletions variants/classical/bindata.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion variants/classical/classical.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ var ClassicalVariant = common.Variant{
SVGMap: func() ([]byte, error) {
return Asset("svg/map.svg")
},
SVGVersion: "7",
SVGVersion: "8",
SVGUnits: SVGUnits,
SVGFlags: SVGFlags,
CreatedBy: "Allan B. Calhamer",
Expand Down
145 changes: 71 additions & 74 deletions variants/classical/svg/map.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions variants/coldwar/bindata.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion variants/coldwar/coldwar.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var ColdWarVariant = common.Variant{
SVGMap: func() ([]byte, error) {
return Asset("svg/coldwarmap.svg")
},
SVGVersion: "2",
SVGVersion: "3",
SVGUnits: map[godip.UnitType]func() ([]byte, error){
godip.Army: func() ([]byte, error) {
return classical.Asset("svg/army.svg")
Expand Down
210 changes: 140 additions & 70 deletions variants/coldwar/svg/coldwarmap.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions variants/empiresandcoalitions/bindata.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion variants/empiresandcoalitions/empiresandcoalitions.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var EmpiresAndCoalitionsVariant = common.Variant{
SVGMap: func() ([]byte, error) {
return Asset("svg/empiresandcoalitionsmap.svg")
},
SVGVersion: "3",
SVGVersion: "5",
SVGUnits: map[godip.UnitType]func() ([]byte, error){
godip.Army: func() ([]byte, error) {
return classical.Asset("svg/army.svg")
Expand Down
590 changes: 530 additions & 60 deletions variants/empiresandcoalitions/svg/empiresandcoalitionsmap.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions variants/europe1939/bindata.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion variants/europe1939/europe1939.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ var Europe1939Variant = common.Variant{
SVGMap: func() ([]byte, error) {
return Asset("svg/europe1939map.svg")
},
SVGVersion: "1",
SVGVersion: "3",
SVGUnits: map[godip.UnitType]func() ([]byte, error){
godip.Army: func() ([]byte, error) {
return classical.Asset("svg/army.svg")
Expand Down
175 changes: 113 additions & 62 deletions variants/europe1939/svg/europe1939map.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 47d64d4

Please sign in to comment.