Thanks for the fix - works great now. I still love how fast and difficult the game is - keeps me coming back for more! Reminds me a lot of Donkey Kong and Chuckie Egg, but sped up!
matthewbegg
Recent community posts
Yeah - pleased to meet a fellow TINY BASIC enthusiast! Not many of my friends had heard of it. it reminds me a lot of programming for the ZX81 where you can't have multiple statements per line with colons. So nested IFs become quite useful to squeeze more out of each line. Was hoping to include some error handling but I prioritised getting as many of the original TINY BASIC commands in as possible. The trickiest command to implement was PRINT - I really wanted to be able to have combinations of text mixed with variables using semi-colons. In the end, I only managed to get text OR variables not both. But I did manage to get semi-colons at the end of PRINT statements to stop a carriage return if you want the next PRINT/INPUT statement to follow straight on.
Great fun! I loved the original in the 90s. So much so that I wrote my tribute to it for the Sinclair ZX Spectrum as part of this year's BASIC 10 Liner contest: https://bunsen.itch.io/barcode-battle-zx-spectrum-by-matthew-begg - please check it out!
I love this! Great use of the SGN function. The 10x10 grid of characters is clever - gives you a total of 93 characters. Thought I'd have a go at porting this to the ZX Spectrum:
1 INPUT m: LET n=1+INT (RND*m): FOR t=1 TO 99: INPUT (t);"?";g: LET d=SGN (n-g): PRINT CHR$ (61+d): LET t=t+99*NOT d: NEXT t
Managed to get it into 1 line of BASIC using just 68 characters (gotta love the Spectrum tokenisation storing keywords in 1 character!). Not as pretty as the 10x10 grid, but kept the same gameplay as the original (unless it takes the player more than 99 guesses!)
Anyone fancy trying to make it even smaller on another platform? What about you Commodore lot?