Re: [NTG-context] OT: Pexeso (one missing rule)

2018-06-12 Thread Otared Kavian
Hi Lukas,

Thanks for sharing your code and this nice game… even for adults :-)

I tried your code with a set of images describing various shapes of leaves, and 
you can find it here:

https://www.dropbox.com/s/thbm6xxbvobakj6/feuilles-jeu-1.pdf?dl=0

I was wondering how to change your code in order to get cards with an alphabet 
on them, or numbers and digits, or even Chinese characters, directly within 
ConTeXt (that is not creating first a set of images with the alphabet, or the 
numbers or the characters).

Best regards: OK

> On 11 Jun 2018, at 16:31, Procházka Lukáš Ing.  wrote:
> 
> Hello,
> 
> there is a card game called "Pexeso".
> 
> It is played by two or more players with pairs of cards of identical pictures.
> Initially, cards are spread regularly and are turned upside down.
> The first player turns two cards; if they are identical, he picks them and 
> continues turning two more cards.
> If both cards do not show the same picture,
> --->THEY ARE TURNED BACK UPSIDE DOWN
>   and the next payer follows.
> (So the game is about to remember as many cards as possible which have been 
> turned/shown.)
> The game stops when there are no more cards to turn.
> Who collects more pairs of cards is winner.
> 
> Usually, you can buy Pexeso of Barbies, princesses, road signs, castles, ...
> 
> My little son (of nearly 4 years) ignores all above as he is interested (or 
> even fascinated) by construction machinery and woodworking tools.
> 
> So I decided to create a Pexeso of woodworking tools for him with the 
> following points:
> 
> - Pictures to be processed are placed in the subdirectory called "1" (may be 
> changed).
> 
> - Pictures whose name do not start by "-" have the first letter uppercased 
> shown on the card ("education" for letters).
> 
> - You may simply change the text or MP code to draw the card back.
> 
> - Backs of cards are intentionally a bit randomized (I am curious how quickly 
> children are able to recognize some cards by their backs).
> 
> - When the number of cards is not multiple of two (also my case), two more 
> backs of cards will be drawn.
>   This is intended and it comes due to some simplicity of the code; and 
> it doesn't matter to anything.
> 
> - Source uses UTF-8 coding.
> 
> - There are no dependencies to external files (excluding pictures).
> 
> - The source file is attached.
>   Due to the size (~2.3 MB), all data including the result and source 
> pictures are available for download here:
> 
>   http://leteckaposta.cz/611754576
> 
>   (The link will be valid for ~27 days from now.)
> 
> Enjoy!
> 
> Best regards,
> 
> Lukas
> 
> 
> -- 
> Ing. Lukáš Procházka | mailto:l...@pontex.cz
> Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz | 
> IDDS:nrpt3sn
> Bezová 1658
> 147 14 Praha 4
> 
> Mob.: +420 702 033 
> 396___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] OT: Pexeso (one missing rule)

2018-06-11 Thread Procházka Lukáš Ing .

Hello,

there is a card game called "Pexeso".

It is played by two or more players with pairs of cards of identical pictures.
Initially, cards are spread regularly and are turned upside down.
The first player turns two cards; if they are identical, he picks them and 
continues turning two more cards.
If both cards do not show the same picture,
--->THEY ARE TURNED BACK UPSIDE DOWN
and the next payer follows.
(So the game is about to remember as many cards as possible which have been 
turned/shown.)
The game stops when there are no more cards to turn.
Who collects more pairs of cards is winner.

Usually, you can buy Pexeso of Barbies, princesses, road signs, castles, ...

My little son (of nearly 4 years) ignores all above as he is interested (or 
even fascinated) by construction machinery and woodworking tools.

So I decided to create a Pexeso of woodworking tools for him with the following 
points:

- Pictures to be processed are placed in the subdirectory called "1" (may be 
changed).

- Pictures whose name do not start by "-" have the first letter uppercased shown on the 
card ("education" for letters).

- You may simply change the text or MP code to draw the card back.

- Backs of cards are intentionally a bit randomized (I am curious how quickly 
children are able to recognize some cards by their backs).

- When the number of cards is not multiple of two (also my case), two more 
backs of cards will be drawn.
This is intended and it comes due to some simplicity of the code; and 
it doesn't matter to anything.

- Source uses UTF-8 coding.

- There are no dependencies to external files (excluding pictures).

- The source file is attached.
Due to the size (~2.3 MB), all data including the result and source 
pictures are available for download here:

http://leteckaposta.cz/611754576

(The link will be valid for ~27 days from now.)

Enjoy!

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz | 
IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4

Mob.: +420 702 033 396

Pexeso2.mkiv
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] OT: Pexeso

2018-06-11 Thread Procházka Lukáš Ing .

Hello,

there is a card game called "Pexeso".

It is played by two or more players with pairs of cards of identical pictures.
Initially, cards are spread regularly and are turned upside down.
The first player turns two cards; if they are identical, he picks them and 
continues turning two more cards.
Once both cards do not show the same picture, the next payer follows.
The game stops when there are no more cards to turn.
Who collects more pairs of cards is winner.

Usually, you can buy Pexeso of Barbies, princesses, road signs, castles, ...

My little son (of nearly 4 years) ignores all above as he is interested (or 
even fascinated) by construction machinery and woodworking tools.

So I decided to create a Pexeso of woodworking tools for him with the following 
points:

- Pictures to be processed are placed in the subdirectory called "1" (may be 
changed).

- Pictures whose name do not start by "-" have the first letter uppercased shown on the 
card ("education" for letters).

- You may simply change the text or MP code to draw the card back.

- Backs of cards are intentionally a bit randomized (I am curious how quickly 
children are able to recognize some cards by their backs).

- When the number of cards is not multiple of two (also my case), two more 
backs of cards will be drawn.
This is intended and it comes due to some simplicity of the code; and 
it doesn't matter to anything.

- Source uses UTF-8 coding.

- There are no dependencies to external files (excluding pictures).

- The source file is attached.
Due to the size (~2.3 MB), all data including the result and source 
pictures are available for download here:

http://leteckaposta.cz/611754576

(The link will be valid for ~27 days from now.)

Enjoy!

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz | 
IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4

Mob.: +420 702 033 396

Pexeso2.mkiv
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___