Comments by wdtr2
Using Self play against the game https://www.chessvariants.com/play/pbm/play.php?game=Pocket+Shogi+Copper&settings=default
Now move the black bishop to the center of the board without a capture (when that move is legal). (3rd or 4th move)
I think This move will produce a "move" parse error IMO.
There has been no coding changes to that game for many years.
yes, PHP. lol. oops. Thank you.
I'm not sure if this is a bug. I just attempted to play Kamikaze Mortal Shogi with 2 people on the same computer.
It appears to me that the screens came up properly, but
the game did not show legal moves. (FYI). This was in the 1st move and not on drop moves. (I did not test that). Shogi seems to have had something simmilar, but you fixed that. Thank you. :)
It's Tuesday 1/24/2023 18:07 EDT. About 1.5 hours ago I was playing pocket shogi copper, and I made my move. My opponent made his move, and now when I go into the gameroom wdtr2-cvgameroom-2023-20-548 the game blow up. It seems to be dumping the piece array. Worse than that if I click on the game not the game room the object blows up also. It seems almost like the instruction file (program) was wiped/modified/or became corrupt. It was working about 2 hours ago. Note: I did make a modification to this game about 2 or 3 days ago, so if you had to do a restore from a few days back this would explain the unusual behavior. Thanks, Jim aka wdtr2.
The game shogi seems to be broken also. Error on turn 0.
Chess with Different Armies Settings=Colorbound-Knights
Look the black knight on c8. move it to b6.
When that knight = piece id is (cn) , is in column a or b it does not show the side and rear king moves as legal moves.
IMO the game is an excellent variant.
oops, never mind. I found the fix. I copied some of code from shogi to fix it. I replaced the legal moves aka -Range with a lambda function, and all is working now. :)
First of all Jocely is awesome. I am playing chu shogi on Jocely, and using the 2d symbols on the board when I play. I'd like to design my own 2d piece set. If I download jocely at git hub, does it contain the existing symbols for 2d chu shogi jocely game? If yes, it will make my life easier, I can just edit each piece one at a time. If I design a new chu shogi piece set, would you be willing to add it to CV?
Thank you. I'll try to pull the png. The 2d does not suck, it is pretty good. There are some pieces that I just want to adjust, like the existing camel, and knight. I see the camel and expect 1x3, and the knight 2x1 leap. There a no knights in chu, so the computer often makes a move that I don't expect because I am thinking knight. I really dislike kanji tiles because I can't easily identify one from the other, and if you flip it, whoa! :)
Question: the png file seems to contain everything. at CV the PHP code expects a seperate png/jpg file for each piece and there is some file that glues it all together. Do I need to make about 80 png files including flipped images, or is the code so advanced that somehow jocely can dice and slice the png file and make each piece off that one file?
Awesome. Thank you so much for explaining this. :) Well I now have a new task to add to my "to do" list.
I have a new web page with the rules. It is waiting for one of the admins to look and approve it. Please review and approve when you have some time.
Thanks.
Jim aka wdtr2.
www.chessvariants.com/rules/elephant_shogi
I'm far from an expert. line 193 is in a loop, and you are getting an array back of enimies that is from piece.
Line 193 is using fn #piece.
This means you need a function def for every piece.
def bi merge checkaleap #0 #1 1 2 checkaleap #0 #1 1 4;
https://drive.google.com/file/d/1cSkfAJcEivziYg9H9zpJr-piTqZsFrnw/view?usp=drive_link
Hello, the link above is for my google drive. That folder should have 1 png picture. About two weeks ago I asked about Jocely and Chu shogi. In particular the 2d pieces, and How I would like to make my own piece set. You gave me part of the java script code and a png file. The picture is my progress so far. I'm taking the CV chu set and enlarging it and adding color. The pieces will be 100px by 100px. I've only made a few pieces so far. I wanted to see if you think this is ok or a hunk of junk! My goal is to eventually get this in jocely so that the 2d pieces are less confusing to me. :) If I get the OK from you I will keep going an merge all the pics into 1 ribbon pic, just like the one you have right now. I dont see any advantage in appending these new pics into the existing 2d pic ribbon that came from wiki. (you suggested that I do that). So should I keep going in my direction?
ok, that is why I checked. :) I'll try again.
On the games invite page, I see once in a while "play tester". What is that? Is it a person's id? is it an AI program that plays CV chess, or something else?
This message is for Catugo: oops, I did not see your message about Elephant Shogi not working. You have not made a move in a few days, so I thought you went somewhere on vacation. === I had the same problem with Elephant Shogi also. I am not sure why. The load of this game seems always seems sluggish to me. I copied the code from shogi, and added the elephants. I am far from an expert at coding at CV, but it starting working for me again. This is what I did to get around the issue. ==== on the top of the cv pages there is a header. Play, games, explore, shop, etc. The header on the far right should say catugo for you. === click catugo, and logout. log back in. then go to: https://www.chessvariants.com/play/pbm/logs.php?stat=ongoing&age=7776000&sort=priority&userid=catugo === after the logout and login, it starting working for me again. ====
Can you send me a picture or text of your error message?
I just tried playing the game with the exact same moves, and I can't find the bug yet. I just deleted the game, so that you do not loose via a time default. I am going to examine the code, and modify the elephant move. Sorry about this issue. :(
@Fergus ... I think the shogi series (perhaps all of them) is having a problem. (see pocket shogi copper). To do a move you click the piece and you get your square gray cube (so far so good). Legal moves show as blue squares. (again ok). You click a blue square, and the move never completes. (That is the issue)
At the cv web site there is a menu bar. On the menu bar after I sign in is my userid. If I hover my mouse over my userid a sub-menu pop-up comes up. At that point I click "Your games on Game Courier". This is probably my most visited page. The banner for this page is "Your Active Game Logs + Open Invitations". A few days ago the color for my games that I need to act on was a yellow/orange background with a black color font. Today the color for my games that I am playing is black background with navy blue font color. This makes the result set/(table) (that 1 row) almost impossible to read. Would it be possible to change the color so that those rows are more readable? Perhaps I need to clear cache?
@Kevin Kevin for pocket Shogi Copper is the "White has won" a major issue? If yes, I might be able to adjust the code. When I wrote the code I think I may have reversed the shogi pieces. i.e. black is white, and white is black. I think I reversed the label names in the programming section, and I am guessing that is the issue for white has won. The combination of reverse pieces and the labels most likely is the cause for pocket shogi copper white has won.
Do you want me to try and fix it?
@kevin
Amendment: I just visited your game and it said "Black has won". I think maybe fergus fixed it, or the issue has been resolved. Is all working as it should?
@Fergus you fixed it. Thank you.
25 comments displayed
Permalink to the exact comments currently displayed.
A few months ago (perhaps a year or more), the code for shogi was modified. We now seem to have special variables like pawn-range etc.
The code I copied and modified many years ago does not seem to be working. Below is an error message below that I got using my old code where b is a black bishop, when I attempt to do a drop I seem to get the error message The move MOVE: b*9h ain't well-formed.
Any suggestions on how I should correct this?
Array ( [0] => MOVE: [1] => b [2] => * [3] => 9h )
ILLEGAL: b*9h on turn 8:
The move MOVE: b9h ain't well-formed. b is a coordinate. So should be a hyphen.
Go back with your browser's BACK button, reload the page, and try again.
For diagnostic purposes, here is the full movelist: