td-gammon icon indicating copy to clipboard operation
td-gammon copied to clipboard

Player x also moves clockwise?

Open jeffxtang opened this issue 9 years ago • 3 comments

After I run the command python main.py --play --restore, I'm able to enter the right clockwise moves for Player o, but why does Player x (the program) also moves clockwise, as shown below? Shouldn't Player x move counter-clockwise?

| 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 |
| -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- |
|  x |    |    |    |  o |    |  o |    |    |    |    |  x |
|  x |    |    |    |  o |    |  o |    |    |    |    |  x |
|  x |    |    |    |  o |    |  o |    |    |    |    |    |
|  x |    |    |    |    |    |  o |    |    |    |    |    |
|  x |    |    |    |    |    |  o |    |    |    |    |    |


|  o |    |    |    |    |    |  x |    |    |    |    |    |
|  o |    |    |    |    |    |  x |    |    |    |    |    |
|  o |    |    |    |  x |    |  x |    |    |    |    |    |
|  o |    |    |    |  x |    |  x |    |    |    |    |  o |
|  o |    |    |    |  x |    |  x |    |    |    |    |  o |
| -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- |
| 11 | 10 |  9 |  8 |  7 |  6 |  5 |  4 |  3 |  2 |  1 |  0 |

<Player x> Off Board : Bar : <Player o> Off Board : Bar : Player x rolled <6, 5>.

| 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 |
| -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- |
|  x |  x |    |    |  o |    |  o |    |    |    |    |  x |
|  x |    |    |    |  o |    |  o |    |    |    |    |  x |
|  x |    |    |    |  o |    |  o |    |    |    |    |    |
|  x |    |    |    |    |    |  o |    |    |    |    |    |
|  x |    |    |    |    |    |  o |    |    |    |    |    |


|  o |    |    |    |    |    |    |    |    |    |    |    |
|  o |    |    |    |    |    |  x |    |    |    |    |    |
|  o |    |    |    |    |    |  x |    |    |    |    |    |
|  o |    |    |    |  x |    |  x |    |    |    |    |  o |
|  o |  x |    |    |  x |    |  x |    |    |    |    |  o |
| -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- |
| 11 | 10 |  9 |  8 |  7 |  6 |  5 |  4 |  3 |  2 |  1 |  0 |

jeffxtang avatar Dec 04 '16 19:12 jeffxtang

Same bug for me.

BrettBoval avatar Oct 05 '17 05:10 BrettBoval

Serious bug.

dougedmunds avatar May 07 '18 05:05 dougedmunds

Yep, I believe there's a PR somewhere on here that should fix it but I haven't had time to review.

jimfleming avatar May 07 '18 14:05 jimfleming