Onitama
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Livecode Opensource Backer
- Posts: 10098
- Joined: Fri Feb 19, 2010 10:17 am
Onitama
Onitama is an abstract game:
- -
It retails for anywhere between 25 - 35 Euros.
Of course people who do not want to spend that sort of money and have
a bit of imagination can make their own version:
- -
The rules are fairly straightforward:
-
- -
It retails for anywhere between 25 - 35 Euros.
Of course people who do not want to spend that sort of money and have
a bit of imagination can make their own version:
- -
The rules are fairly straightforward:
-
-
- Livecode Opensource Backer
- Posts: 10098
- Joined: Fri Feb 19, 2010 10:17 am
Re: Onitama
So . . . to LiveCode:
So . . . to my Summer classes . . .
So . . . today I introduced this game to the boys and girls in the class and we played it and did
some sort of functional analysis of the game . . .
Those of the children who have Android phones and/or tablets installed the FREE
Onitama.apk package so they could play it and think about things on the bus on the way home.
https://m.apkpure.com/onitama-the-strat ... al.onitama
I gave them a stack like this:
- -
Where the board has started being constructed and the playing pieces are present.
So . . . to my Summer classes . . .
So . . . today I introduced this game to the boys and girls in the class and we played it and did
some sort of functional analysis of the game . . .
Those of the children who have Android phones and/or tablets installed the FREE
Onitama.apk package so they could play it and think about things on the bus on the way home.
https://m.apkpure.com/onitama-the-strat ... al.onitama
I gave them a stack like this:
- -
Where the board has started being constructed and the playing pieces are present.
Last edited by richmond62 on Tue Jul 26, 2022 9:20 pm, edited 1 time in total.
-
- Livecode Opensource Backer
- Posts: 10098
- Joined: Fri Feb 19, 2010 10:17 am
Re: Onitama
Then I rambled on about custom properties a bit . . .
Pointed out that the computer would need to 'see' on which square of the board
a piece was placed . . .
Then sent them home . . .
Pointed out that the computer would need to 'see' on which square of the board
a piece was placed . . .
Then sent them home . . .
- Attachments
-
- Onitama_pupils_day_1.livecode.zip
- Stack.
- (12.02 KiB) Downloaded 110 times
-
- Livecode Opensource Backer
- Posts: 10098
- Joined: Fri Feb 19, 2010 10:17 am
Re: Onitama
Now, not wanting to look unduly stupid in front of the children tomorrow
I sat down to do my homework:
- - -
Obviously this is NOT the complete game.
What is present is the ability to move pieces any where one wants (no restrictions of moves
imposed by cards yet), the inability to put 2 of one's pieces on the same square, the ability
to capture an opponent's piece, and a RESET button.
I sat down to do my homework:
- - -
Obviously this is NOT the complete game.
What is present is the ability to move pieces any where one wants (no restrictions of moves
imposed by cards yet), the inability to put 2 of one's pieces on the same square, the ability
to capture an opponent's piece, and a RESET button.
- Attachments
-
- Onitama.livecode.zip
- Stack.
- (12.88 KiB) Downloaded 106 times
-
- Livecode Opensource Backer
- Posts: 10098
- Joined: Fri Feb 19, 2010 10:17 am
Re: Onitama
So, here's a wee stack to pump out position cards:
- -
Stack deleted as improved version uploaded below.
- -
Stack deleted as improved version uploaded below.
Last edited by richmond62 on Wed Jul 27, 2022 10:52 am, edited 1 time in total.
-
- Livecode Opensource Backer
- Posts: 10098
- Joined: Fri Feb 19, 2010 10:17 am
Re: Onitama
Um . . .
Trying to mess around with custom properties
and wonder what is wrong with this:
Trying to mess around with custom properties
and wonder what is wrong with this:
Code: Select all
on mouseUp
set the angle of img "K1" to 180
if the P1 of img "K1" contains "L" then
replace "L" with "R" in the P1 of img "K1"
end if
end mouseUp
Re: Onitama
Unfortunatly we cannot modify custom properties directly!
We need to store the value in a variable, modify that and set the modified CP back:

We need to store the value in a variable, modify that and set the modified CP back:
Code: Select all
on mouseUp
set the angle of img "K1" to 180
## Also quotes for the name of a custom prop!
put the "P1" of img "K1" into tP1
if tP1 contains "L" then
replace "L" with "R" in tP1
set the "P1" of img "K1" to tP1
end if
end mouseUp
-
- Livecode Opensource Backer
- Posts: 10098
- Joined: Fri Feb 19, 2010 10:17 am
Re: Onitama
This is a better card generator as it places a small, black dot at the top of each card.
Each of the squares surrounding the central green one can be clicked to set it as red or white.
Then a card can be generated: they will be named, sequentially: Kq, K2, K3 and so on.
-
- Attachments
-
- card maker.livecode.zip
- Stack.
- (2.61 KiB) Downloaded 115 times
Last edited by richmond62 on Wed Jul 27, 2022 1:45 pm, edited 1 time in total.
-
- Livecode Opensource Backer
- Posts: 10098
- Joined: Fri Feb 19, 2010 10:17 am
Re: Onitama
Hmm . . .
- -
We got 'off' on a long, complex and sweaty conversation about custom properties,
Onitama position cards, and, slightly oddly, Quadomino pieces today.
- -
All, good, clean fun.
-
- -
We got 'off' on a long, complex and sweaty conversation about custom properties,
Onitama position cards, and, slightly oddly, Quadomino pieces today.
- -
All, good, clean fun.

-
-
- Livecode Opensource Backer
- Posts: 10098
- Joined: Fri Feb 19, 2010 10:17 am
Re: Onitama
After some discussion we concluded that each card will have to have between 2 and 4 custom properties,
and HOW those custom properties are interpreted will depend on the angle of the card:
-
-
- Livecode Opensource Backer
- Posts: 10098
- Joined: Fri Feb 19, 2010 10:17 am
-
- Livecode Opensource Backer
- Posts: 10098
- Joined: Fri Feb 19, 2010 10:17 am
Re: Onitama
Here's a far, far more useful card maker.
- Attachments
-
- card maker.livecode.zip
- Stack.
- (54.76 KiB) Downloaded 114 times
-
- Livecode Opensource Backer
- Posts: 10098
- Joined: Fri Feb 19, 2010 10:17 am
Re: Onitama
While I am aware that the vast majority of readers of these LiveCode Forums
make their bread and cheese in the "abstrusities" of 'serious' programming,
I have a continuing belief in:
1. The educational use of LiveCode to teach:
1.1. Programming concepts.
1.2. Abstract thinking.
1.3. Thinking laterally.
2. Taking something (a computer game, a computer program that does something other than
talk to other programs, a physical, abstract game) and getting an up-and-running, functional
model of that something as:
2.1. A way to learn computer programming.
2.2. Learn how to transfer skills.
2.3. Work out that 'fun' is not (and should not) something that consists of totally
mindless activity.
BUT, it should be emphasised, I am NOT first and foremost a programmer, I am first and foremost an educator
who believes:
3. Most people (children or adults) are NOT stimulated to think nearly as much as they should be.
make their bread and cheese in the "abstrusities" of 'serious' programming,
I have a continuing belief in:
1. The educational use of LiveCode to teach:
1.1. Programming concepts.
1.2. Abstract thinking.
1.3. Thinking laterally.
2. Taking something (a computer game, a computer program that does something other than
talk to other programs, a physical, abstract game) and getting an up-and-running, functional
model of that something as:
2.1. A way to learn computer programming.
2.2. Learn how to transfer skills.
2.3. Work out that 'fun' is not (and should not) something that consists of totally
mindless activity.
BUT, it should be emphasised, I am NOT first and foremost a programmer, I am first and foremost an educator
who believes:
3. Most people (children or adults) are NOT stimulated to think nearly as much as they should be.
-
- Livecode Opensource Backer
- Posts: 10098
- Joined: Fri Feb 19, 2010 10:17 am
Re: Onitama
No, we cannot.Unfortunatly we cannot modify custom properties directly!
So, we will use the angle of a movement card to ascertain possible moves.
-
- Livecode Opensource Backer
- Posts: 10098
- Joined: Fri Feb 19, 2010 10:17 am
Re: Onitama
-
Having used my card maker stack to generate the standard
Onitama set of 16 cards along with custom properties
I have now got them tucked away on the stack so that 5 can be chosen at pseudo-random
and positioned for play.
The dot on each card serves as an indicator to us as to the card's angle.
-
-
Having used my card maker stack to generate the standard
Onitama set of 16 cards along with custom properties
I have now got them tucked away on the stack so that 5 can be chosen at pseudo-random
and positioned for play.
The dot on each card serves as an indicator to us as to the card's angle.