Onitama

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10094
Joined: Fri Feb 19, 2010 10:17 am

Re: Onitama

Post by richmond62 » Wed Jul 27, 2022 6:54 pm

Here's a functional implementation:

https://onitama.app/#/

Although it will win no prizes for look and feel:
-
SShot 2022-07-27 at 20.53.57.png
-
The Android version is lovely, and, in terms of functionality what I particularly like
is that on selecting a card and a piece the possible moves that that piece can make are indicated:
-
SShot 2022-07-27 at 21.07.10.png

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10094
Joined: Fri Feb 19, 2010 10:17 am

Re: Onitama

Post by richmond62 » Thu Jul 28, 2022 10:34 am

Screen Shot 2022-07-28 at 12.32.33 PM.png
-
Got to the stage where, on clicking a move card its custom properties are put into fields, as
well as the angle of the card.

'dots' (images x1 thru x25) are present above each position on the board (set to invisible)
ready to signal possible moves.

Hilighting via showBorder, borderColor and so on has been implemented for both the move
cards and the pieces.
Attachments
Onitama.livecode.zip
Stack.
(21.12 KiB) Downloaded 113 times

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10094
Joined: Fri Feb 19, 2010 10:17 am

Re: Onitama

Post by richmond62 » Thu Aug 04, 2022 12:14 pm

I had a 'dark night of the soul' 2 days ago and the one pupil who has not run off screaming to the seaside (well, just opted for side scrollers as their projects) got in fight with her father (who is now trying to compete with his daughter and me to finish this thing) over how to do things . . .

. . . so more coming in about 5-6 hours, promise, honest. :wink:

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10094
Joined: Fri Feb 19, 2010 10:17 am

Re: Onitama

Post by richmond62 » Thu Aug 04, 2022 1:59 pm

So, I renamed the squares of the gameboard like this:
-
SShot 2022-08-04 at 15.57.25.png
-
and I renamed the 'blobs' similarly: x,1,1 x,1,2 . . . x,5,5

This will make setting possible move locations easier.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10094
Joined: Fri Feb 19, 2010 10:17 am

Re: Onitama

Post by richmond62 » Thu Aug 04, 2022 5:38 pm

OK, OK: now, if one clicks on a piece the possible moves are marked (although why
2 clicks should be necessary is something I have not tracked down yet):
-
SShot 2022-08-04 at 19.36.43.png
-
There is still a long, long way to go.

I obviously have a version control problem as the stack I uploaded yesterday was an earlier recension.

I apologise for that.

Here is the one I mentioned in this posting.
Attachments
Onitama.livecode.zip
Stack.
(21.7 KiB) Downloaded 114 times

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10094
Joined: Fri Feb 19, 2010 10:17 am

Re: Onitama

Post by richmond62 » Fri Aug 05, 2022 9:52 am

SShot 2022-08-05 at 11.46.23.png
-
Fixed several troublesome points:

1. Red pieces will only register moves for the 2 cards at the bottom of the window.

2. Blue pieces will only register moves for the 2 cards at the top of the window.

3. Position blobs will always show ABOVE pieces.
Attachments
Onitama.livecode.zip
Stack.
(22.22 KiB) Downloaded 116 times

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10094
Joined: Fri Feb 19, 2010 10:17 am

Re: Onitama

Post by richmond62 » Fri Aug 05, 2022 9:58 am

Next on the to-do list:

1. Set things up so when an end-user clicks on a move card it will mark possible moves on the board
for a selected piece.
-
SShot 2022-08-05 at 11.57.32.png

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10094
Joined: Fri Feb 19, 2010 10:17 am

Re: Onitama

Post by richmond62 » Fri Aug 05, 2022 12:49 pm

That has been implemented.
Attachments
Onitama.livecode.zip
Stack.
(24.13 KiB) Downloaded 118 times

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10094
Joined: Fri Feb 19, 2010 10:17 am

Re: Onitama

Post by richmond62 » Tue Aug 09, 2022 4:28 pm

Yoo.jpg
-
Ach, well, ma nephew stapt by, an there's naethin tae exerceese the harns
like some byous roonds o a game, forbye.

Aiblins, eftir that, Ah mucht get ma harns in gear fae further wark. 8)

Post Reply