Minimalistic text games

General games-related topics
User avatar
stefano
Posts: 542
Joined: Tue Dec 11, 2012 9:24 am
Contact:

Re: Minimalistic text games

Post by stefano »

Pokemon, did they work on the real HW eventually ?
User avatar
PokeMon
Posts: 2264
Joined: Sat Sep 17, 2011 6:48 pm

Re: Minimalistic text games

Post by PokeMon »

Not yet, didn't had time that weekend but hope on this weekend. ;)
User avatar
PokeMon
Posts: 2264
Joined: Sat Sep 17, 2011 6:48 pm

Re: Minimalistic text games

Post by PokeMon »

Some of the games are working on real hardware, some not.

mastermind.o => ok
joust.o => ok
luna.o => ok
hilo.o => ok


blackjack.o => no
(start after run, bet okay, after choose of cards the display is corrupted after a few seconds, seems to be a wrong value in I register / wrong pointer to char table)

tictactoe.o => no
(start after run but program wiped out, come back with K cursor immediately)

worldpuzzle.o => no
(crashes after start, no display at all, black screen)

riskdice.o => no
(start after run but program wiped out, come back with K cursor immediately)
(crashes even in emulator, first 2 questions answered, after black screen forever)

fast-furious.o => no
(crashes after start, no display at all, black screen)
User avatar
stefano
Posts: 542
Joined: Tue Dec 11, 2012 9:24 am
Contact:

Re: Minimalistic text games

Post by stefano »

Thank you for the report !
I'll do my best to try understanding what's bad..
User avatar
stefano
Posts: 542
Joined: Tue Dec 11, 2012 9:24 am
Contact:

Re: Minimalistic text games

Post by stefano »

I revised the source adaptions I made for the ZX80 but at the moment I couldn't find much.
It could have to do with some critical register I'm not protecting enough.. what I don't understand is, in example, why tictactoe is crashing while joust doesn't they are both using the same console functions, and why it is not crashing the emulated Z80. Joust is bigger and tic doesn't use advanced mathematics or things which might corrupt special registers.
Here's a slightly modified version, just to see if the problem persists.
Attachments
tic2.o
ZX80 Tic Tac Toe, new attempt.
(3.75 KiB) Downloaded 272 times
User avatar
stefano
Posts: 542
Joined: Tue Dec 11, 2012 9:24 am
Contact:

Re: Minimalistic text games

Post by stefano »

More crap.. really ! It is a direct compilation of "Monty Python's Bridge of Death":
http://csscgc2010.zxlife.net/Games.aspx#L20

Don't say you weren't warned :D
Attachments
bridge_wrx.p
"Monty Python's Bridge of Death", ZX81 WRX
(8.84 KiB) Downloaded 245 times
bridge.o
"Monty Python's Bridge of Death", ZX80
(5.98 KiB) Downloaded 282 times
bridge.p
"Monty Python's Bridge of Death", ZX81
(6.93 KiB) Downloaded 253 times
Shaun_B
Posts: 474
Joined: Wed Apr 22, 2009 10:22 am

Re: Tic Tac Toe (AKA Tris)

Post by Shaun_B »

stefano wrote: Wed Oct 30, 2013 8:36 am This one couldn't miss.. :D
It is the only game in this list I wrote myself.
Shame on me, presented it in the minigame compo in 2003 and classified second to last !
Well there are many good reasons for this .. not telling, but don't expect a killer app ! :P
I've developed a version of Tic-Tac-Toe for the ZX80 which is now finished. It works on the unexpanded machine so there is no AI - it does however check for a winner - this was the most memory costly bit of the whole symbolic listing so you're welcome.

Any tips to save valuable bytes are welcome as it'll help with my next game.

Regards,

Shaun.
Attachments
tic-tac-toe-v2.o
Finished (1K) version
(747 Bytes) Downloaded 268 times
tic-tac-toe.o
Unfinished version of Tic-Tac-Toe
(473 Bytes) Downloaded 237 times
User avatar
stefano
Posts: 542
Joined: Tue Dec 11, 2012 9:24 am
Contact:

Re: Minimalistic text games

Post by stefano »

It is nice already (and cute).
My cent is on the compare expressions, you may substitute: IF J=0 and IF A(I)=0 with IF NOT J...
I also wonder if the "TO" function on a string vector could help in place of a DIMensioned variable.
Shaun_B
Posts: 474
Joined: Wed Apr 22, 2009 10:22 am

Re: Minimalistic text games

Post by Shaun_B »

stefano wrote: Thu Mar 30, 2017 3:14 pm It is nice already (and cute).
My cent is on the compare expressions, you may substitute: IF J=0 and IF A(I)=0 with IF NOT J...
I also wonder if the "TO" function on a string vector could help in place of a DIMensioned variable.
This version is for 4K ROM, so the string manipulation as per the ZX81 doesn't work.

Booleans on ZX80 (4K ROM) BASIC are returned as -1 for true and 0 for false.

Thanks,

Shaun.
Shaun_B
Posts: 474
Joined: Wed Apr 22, 2009 10:22 am

Re: Minimalistic text games

Post by Shaun_B »

So here's another 4K ROM ZX80 release for you. It's a cost-reduced version of a fruit machine simulator.

The player starts with £5.00; Type R to roll the reels. Any other key to leave the fruit machine.

Here is the win table:

£££ = £10
$$$ = £8
XXX = £5
OOO = £2
--- = £nil

££? = £4
$$? = £3
XX? = £2
OO? = £1
--? = £nil

As I ran out of memory to add in any mini games, not that one can achieve much with the 4K ROM and BASIC anyway :-)

Enjoy,

Shaun.

PS, This game will be part of a collection released through Monument Microgames.
Attachments
zx80-fruits-2.o
1K cost-reduced fruit machine type simulator
(787 Bytes) Downloaded 270 times
Post Reply