Revisiting Flip Bits and Porting To The MC-10

 Last year, I had fun writing a version of the Flipping Bits Game (from the Rosetta Code site) from scratch. It's a nice relaxed puzzle especially if you are into binary. Recently whilst browsing through my retro code, I realised this game would only require minor changes to port to the MC-10.

So I made the changes rather quickly and then found a bug. Levels 1 to 9 are hand coded whereas later levels are randomly generated (though always solvable). Thankfully the fix was easy enough and, yes, I remembered to fix the Dragon/Tandy version too!

The downside of the game is a little slow in places - PLEASE WAIT pops up between every move. It has to check the entire 2D array after each move against the solution. Luckily the MC-10 has an excellent BASIC compiler. I ran it through that and it is now almost instant in response. It really cool to get that speed boost! This makes me very excited for the various tools being created at the moment for the Tandy and the Dragon. Hopefully more people will be able to code that BASIC game they always wanted to.

Have some flipping fun! Here's the MC-10 version - C10 file in the media folder.

No comments:

Post a Comment

Stitchet Type-In From Dragon User January 1985

This is an interesting yet short type-in from Dragon User January 1985 . The final REM lines include details for running in PMODE3 so I have...