ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Otared Kavian <otared@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: OT: Pexeso (one missing rule)
Date: Tue, 12 Jun 2018 15:10:13 +0200	[thread overview]
Message-ID: <F7C9FCA8-79C6-4764-85C5-4217F0D20541@gmail.com> (raw)
In-Reply-To: <op.zkf7ydsm62epfj@lpr>

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. <LPr@pontex.cz> 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:LPr@pontex.cz
> Pontex s. r. o.      | mailto:pontex@pontex.cz | http://www.pontex.cz | IDDS:nrpt3sn
> Bezová 1658
> 147 14 Praha 4
> 
> Mob.: +420 702 033 396<Pexeso2.mkiv>___________________________________________________________________________________
> 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
___________________________________________________________________________________

      reply	other threads:[~2018-06-12 13:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-11 14:31 Procházka Lukáš Ing.
2018-06-12 13:10 ` Otared Kavian [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=F7C9FCA8-79C6-4764-85C5-4217F0D20541@gmail.com \
    --to=otared@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).