Comments by wdtr2
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.
@Fergus OK, I wanted to review a past game of Xhess. I picked Wed dec 13 2017. 23 moves, the last move was a resgin. so far so good. I click orentation 2nd palyer on the drop down list box. I click go back to starting position. OK so far so good. Now the view buttons contain a ">" go to next move button. I click that. next move. good. I click again next move. good. I do this four times and one of the viewing button becomes a "@". There is an info message: "Lacking data to view this position. To view whole game, load in last move.". From that point on viewing moves becomes difficult. Can you view a prior past game of xhess and see if the view functionality is working as you like? thanks. Jim.
@fergus I am playing a copper pocket shogi game, and when you play against another person there is a preview button and a confirm button. It seems to me that when you press the confirm button I am getting error messages in the "post move section of the code". If I had to guess the variable dollar moved is either not getting populated or it is getting populated in a different way. If I had to guess, when you get to the confirm button the variable dollar moved contains the previous move, and not the preview move. If you want we could play a shogi game so that you can see what I mean. Jim.
*** you fixed it thank you.
@fergus, one of our games is stuck. The error message is:
Syntax Error on line 396
MOVE: @ f2-f1 is not a valid expression, because @ is not a recognized piece, coordinate, command, or subroutine.
def White_Elephant checkleap #0 #1 2 2 or checkleap #0 #1 1 1 ; def White_Elephant-Range mergeall leaps #0 2 2 leaps #0 1 1 leap #0 0 1;
set White_Elephant-Desc "The %s may leap two spaces in any diagonal direction, or go backwards 1 space if the space is empty.";
def Black_Elephant checkleap #0 #1 2 2 or checkleap #0 #1 1 1; def Black_Elephant-Range merge leaps #0 2 2 leaps #0 1 1; set Black_Elephant-Desc "The Elephant may leap two spaces in any diagonal direction, and may move one space backward if the square is empty.";
*** What do I need to do to make a non-capture move that is 1 square south?
I think @arx is the owner of Skica. I am playing a game right now. When the other player did a castle move, the king disappeared. So I think the code needs a tweak to fix that. Also, can you add "pass" as a valid move? This way it is possible for people to communicate without making moves.
@arx, I think I tried that, and it did not work. I'm putting the code down for a while, so I don't get frustrated.
25 comments displayed
Permalink to the exact comments currently displayed.
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.