Jump to content
IGNORED

Video Chess Randomizer (Proof of Concept)


bluswimmer

Recommended Posts

So yesterday I had the weird idea of hacking video chess to give the player a set of random pieces. After about a day of poking around the source code, I was able to trim it down to allow for eight extra pieces to be stored in ROM. Using this modified ROM, I wrote a program that randomizes seven of the pieces in the back row of each set of pieces.

 

videochessrandomizer.thumb.PNG.a9b78d5cd00f307d640985eab59643b7.PNG

 

As you can see, the pawns and king are still present, but otherwise, both teams have a different set of pieces. I tried randomizing the front row too, but this caused so many weird bugs that I had to settle just randomizing the back row.

 

If you'd like to try the randomizer yourself, both the modified ROM and the randomizer itself are in the ZIP file below. The randomizer is a java program that replaces the pieces in the modified ROM with new ones. It takes a single optional argument; an integer seed for the RNG. Once the file is unzipped, just run the randomizer, and then copy vchess.bin into your ROMs folder.

 

ChessRandomizer.zip

Edited by bluswimmer
  • Like 2
  • Thanks 1
Link to comment
Share on other sites

Nice idea. It might be worth checking out the random chess variant that Bobby Fischer invented. I think it shuffled the back row pieces around - players have the same set of pieces but they start in different positions.

 

https://en.wikipedia.org/wiki/Fischer_random_chess

 

You might need more ROM space to code in the shuffling rules - don't know how packed the original ROM is.

Edited by davyK
  • Like 2
Link to comment
Share on other sites

4 hours ago, davyK said:

Nice idea. It might be worth checking out the random chess variant that Bobby Fischer invented. I think it shuffled the back row pieces around - players have the same set of pieces but they start in different positions.

 

https://en.wikipedia.org/wiki/Fischer_random_chess

 

You might need more ROM space to code in the shuffling rules - don't know how packed the original ROM is.

The ROM itself is pretty tightly packed, to my understanding. I'll admit I didn't dive into much aside from how the pieces are generated, but it looks like there's no bytes left in the default ROM. I had to change some things around to allow for the asymmetrical piece layout.

 

Also, I've uploaded a new ZIP with the source code of the randomizer below. Feel free to write your own variants of the randomizer.

ChessRandomizer.zip

  • Like 1
Link to comment
Share on other sites

The code is Java - was expecting assembler - have you some sort of tool that compiles java to 2600 assembler? Or are you using 3GL just as a way of testing functionality and then hand assembling its equivalent?

Edited by davyK
Link to comment
Share on other sites

1 hour ago, davyK said:

The code is Java - was expecting assembler - have you some sort of tool that compiles java to 2600 assembler? Or are you using 3GL just as a way of testing functionality and then hand assembling its equivalent?

 

You seem to be confused. I quote the original post... "The randomizer is a java program that replaces the pieces in the modified ROM with new ones."

The java code is not the chess program. It is a program that modifies the "original/modified" chess program ROM.

  • Like 1
Link to comment
Share on other sites

Ah.....I didn't read the OP correctly.

 

That means the Fischer algorithm can be implemented in Java which would create a bin for playing with one outcome of that.

 

Thanks. Will have a look at that. 

Edited by davyK
  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...