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

Engine generates illegal move #2

Open
Torom opened this issue Jan 26, 2024 · 0 comments
Open

Engine generates illegal move #2

Torom opened this issue Jan 26, 2024 · 0 comments

Comments

@Torom
Copy link

Torom commented Jan 26, 2024

Hey, this is the first time I've played around with the engine, so it's quite possible I did something wrong.

But I've played to the point where the board looks like this:

showboard
=
    A   B   C   D   E   F   G   H   I 
  +---+---+---+---+---+---+---+---+---+
9 |   |   H   |   |   |   |   |   |   | 9  Black walls: 0
  +=======H---+=======+---+---+---+---+
8 |   H   H   |   |   |   |   |   |   | 8  White walls: 1
  +---H---+=======+=======+---+---+---+
7 |   H   |   |   H W |   H   |   |   | 7  
  +---+---+---+---H---+---H---+---+---+
6 |   |   |   | B H   H   H   |   |   | 6  
  +---+=======+---+---H---+---+---+---+
5 |   H   |   |   |   H   H   |   |   | 5  
  +---H---+=======+=======H---+---+---+
4 |   H   |   |   |   |   H   |   |   | 4  
  +---+=======+=======+=======+---+---+
3 |   |   |   |   |   |   |   |   |   | 3  
  +---+---+---+---+---+---+---+---+---+
2 |   |   |   |   |   |   |   |   |   | 2  
  +=======+=======+---+---+---+---+---+
1 |   |   |   |   |   |   |   |   |   | 1  
  +---+---+---+---+---+---+---+---+---+
    A   B   C   D   E   F   G   H   I

It's white's move, so I enter genmove white. The result is = A1. Which makes the board look like this:

showboard
=
    A   B   C   D   E   F   G   H   I 
  +---+---+---+---+---+---+---+---+---+
9 |   |   H   |   |   |   |   |   |   | 9  Black walls: 0
  +=======H---+=======+---+---+---+---+
8 |   H   H   |   |   |   |   |   |   | 8  White walls: 1
  +---H---+=======+=======+---+---+---+
7 |   H   |   |   H   |   H   |   |   | 7  
  +---+---+---+---H---+---H---+---+---+
6 |   |   |   | B H   H   H   |   |   | 6  
  +---+=======+---+---H---+---+---+---+
5 |   H   |   |   |   H   H   |   |   | 5  
  +---H---+=======+=======H---+---+---+
4 |   H   |   |   |   |   H   |   |   | 4  
  +---+=======+=======+=======+---+---+
3 |   |   |   |   |   |   |   |   |   | 3  
  +---+---+---+---+---+---+---+---+---+
2 |   |   |   |   |   |   |   |   |   | 2  
  +=======+=======+---+---+---+---+---+
1 | W |   |   |   |   |   |   |   |   | 1  
  +---+---+---+---+---+---+---+---+---+
    A   B   C   D   E   F   G   H   I
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant