Check out Janggi (Korean Chess), our featured variant for December, 2024.


[ Help | Earliest Comments | Latest Comments ]
[ List All Subjects of Discussion | Create New Subject of Discussion ]
[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]

Single Comment

@ H. G. Muller[All Comments] [Add Comment or Rating]
H. G. Muller wrote on Wed, Jan 3 05:48 PM UTC in reply to Aurelian Florea from Tue Dec 26 2023 11:52 AM:

As I have said earlier I require a bit of help. I have sent you an email on a private address. I'm not sure if you noticed it.

I think I found the problem. As you pointed out, it was imitating his own moves rather than those of the user. This used to work correctly before, but with the addition of the function newClick to get a more powerful move-entry interface, this was broken. Because the type to imitates was set in a MakeMove function that was replaced by newClick; and I had not thought of doing this in newClick. (Because that used the AI's function for making moves, which does keep track of the imitated type already. But it tracked this in another variable, 'imi' instead of 'imitatedType', and for a new move the latter is used to initialize imi.

It should work now both in betza.js and betzaNew.js. (Flush browser cache!)