Skip to content

Commit

Permalink
add tests for shepherd
Browse files Browse the repository at this point in the history
  • Loading branch information
farin committed Aug 22, 2021
1 parent cba7f0c commit 4f31d84
Show file tree
Hide file tree
Showing 6 changed files with 1,168 additions and 0 deletions.
176 changes: 176 additions & 0 deletions engine-tests/hills-and-sheep/flock-deploy-on-closed-farm.jcz
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
{
"appVersion": "5.7.3",
"gameId": "b1d978b00c7e453b8707efc13c63619f",
"name": "",
"initialRandom": 0.9444126853125474,
"created": "2021-08-22T20:02:22.502Z",
"clock": 45376,
"test": {
"description": "Shepherd deployed on closed farm",
"assertions": [
"Bob has 2 points"
]
},
"setup": {
"sets": {
"basic:1": 1,
"hills-and-sheep:1": 1
},
"elements": {
"small-follower": 7,
"farmers": true,
"shepherd": 1,
"hill": true,
"vineyard": true
},
"rules": {},
"timer": null,
"start": [
{
"tile": "BA/RCr",
"x": 0,
"y": 0,
"rotation": 0
}
],
"options": {}
},
"players": [
{
"name": "Alice",
"slot": 0
},
{
"name": "Bob",
"slot": 1
}
],
"replay": [
{
"type": "PLACE_TILE",
"payload": {
"tileId": "BA/RRRR",
"rotation": "R0",
"position": [
1,
0
]
},
"player": 0,
"clock": 2015
},
{
"type": "PASS",
"payload": {},
"player": 0,
"clock": 2799
},
{
"type": "COMMIT",
"payload": {
"random": 0.2038562799118535
},
"player": 0,
"clock": 2806
},
{
"type": "PLACE_TILE",
"payload": {
"tileId": "BA/Rr",
"rotation": "R0",
"position": [
2,
0
]
},
"player": 1,
"clock": 3534
},
{
"type": "PASS",
"payload": {},
"player": 1,
"clock": 4254
},
{
"type": "COMMIT",
"payload": {
"random": 0.7374325362669172
},
"player": 1,
"clock": 4261
},
{
"type": "PLACE_TILE",
"payload": {
"tileId": "BA/Rr",
"rotation": "R90",
"position": [
2,
1
]
},
"player": 0,
"clock": 5375
},
{
"type": "PASS",
"payload": {},
"player": 0,
"clock": 5601
},
{
"type": "COMMIT",
"payload": {
"random": 0.37092481091376195
},
"player": 0,
"clock": 5622
},
{
"type": "PLACE_TILE",
"payload": {
"tileId": "BA/Rr",
"rotation": "R180",
"position": [
1,
1
]
},
"player": 1,
"clock": 6856
},
{
"type": "DEPLOY_MEEPLE",
"payload": {
"pointer": {
"position": [
1,
1
],
"location": "NR.EL",
"feature": "Field"
},
"meepleId": "1.shepherd.1"
},
"player": 1,
"clock": 8553
},
{
"type": "COMMIT",
"payload": {
"random": 0.6789012327508657
},
"player": 1,
"clock": 8569
}
],
"gameAnnotations": {
"drawOrder": [
"BA/RRRR",
"BA/Rr",
"BA/Rr",
"BA/Rr"
]
}
}
185 changes: 185 additions & 0 deletions engine-tests/hills-and-sheep/flock-expand-on-closed.jcz
Original file line number Diff line number Diff line change
@@ -0,0 +1,185 @@
{
"appVersion": "5.7.3",
"gameId": "079bbe45300740ce82442384b65c4658",
"name": "",
"initialRandom": 0.7970761732960339,
"created": "2021-08-22T20:37:41.114Z",
"clock": 145034,
"test": {
"description": "Expand just before field is closed",
"assertions": [
"Bob has 5 points"
]
},
"setup": {
"sets": {
"basic:1": 1,
"hills-and-sheep:1": 1
},
"elements": {
"small-follower": 7,
"farmers": true,
"shepherd": 1,
"hill": true,
"vineyard": true
},
"rules": {},
"timer": null,
"start": [
{
"tile": "BA/RCr",
"x": 0,
"y": 0,
"rotation": 0
}
],
"options": {}
},
"players": [
{
"name": "Alice",
"slot": 0
},
{
"name": "Bob",
"slot": 1
}
],
"replay": [
{
"type": "PLACE_TILE",
"payload": {
"tileId": "BA/RRRR",
"rotation": "R0",
"position": [
1,
0
]
},
"player": 0,
"clock": 1552
},
{
"type": "PASS",
"payload": {},
"player": 0,
"clock": 2511
},
{
"type": "COMMIT",
"payload": {
"random": 0.2871258536493768
},
"player": 0,
"clock": 2518
},
{
"type": "PLACE_TILE",
"payload": {
"tileId": "BA/Rr",
"rotation": "R0",
"position": [
2,
0
]
},
"player": 1,
"clock": 3735
},
{
"type": "DEPLOY_MEEPLE",
"payload": {
"pointer": {
"position": [
2,
0
],
"location": "SR.WL",
"feature": "Field"
},
"meepleId": "1.shepherd.1"
},
"player": 1,
"clock": 5184
},
{
"type": "COMMIT",
"payload": {
"random": 0.9363003271811956
},
"player": 1,
"clock": 5196
},
{
"type": "PLACE_TILE",
"payload": {
"tileId": "BA/Rr",
"rotation": "R90",
"position": [
2,
1
]
},
"player": 0,
"clock": 6783
},
{
"type": "PASS",
"payload": {},
"player": 0,
"clock": 7884
},
{
"type": "COMMIT",
"payload": {
"random": 0.7475661157229303
},
"player": 0,
"clock": 7891
},
{
"type": "PLACE_TILE",
"payload": {
"tileId": "BA/Rr",
"rotation": "R180",
"position": [
1,
1
]
},
"player": 1,
"clock": 8823
},
{
"type": "PASS",
"payload": {},
"player": 1,
"clock": 9826
},
{
"type": "FLOCK_EXPAND_OR_SCORE",
"payload": {
"value": "EXPAND",
"random": 0.6360293561663699
},
"player": 1,
"clock": 13174
},
{
"type": "COMMIT",
"payload": {
"random": 0.014721646189038706
},
"player": 1,
"clock": 13185
}
],
"gameAnnotations": {
"drawOrder": [
"BA/RRRR",
"BA/Rr",
"BA/Rr",
"BA/Rr"
]
}
}
Loading

0 comments on commit 4f31d84

Please sign in to comment.