How can I create a card game in GeoGebra?
Answered
I want to create a list of texts and make them work as a card game.
I would need this function:
When mouse clicked, create a new rectangle with a text inside (randomly chosen from the list). Every rectangle must be able to be moved around the table (that would work as a card). When mouse clicked again, create another rectangle with another text inside (randomly chosen from the list, and different from the previous one). This goes on until all texts have been used - at that moment, game is over.
So I need to learn some new GeoGebra skills:
-How to create a randomized value
-How to make every value associated with a text
-How to create figures with text inside when mouse clicked
Can you provide guidance for this task?
algo así como esta tontería que he hecho?
another solution
The very good solution from mathmagic supplemented.
Further texts can be attached in Cx.
With the following reset the integration into the application is done.
That's nice! Thanks. I would like a sort of mixture of both.
una vez que tengas el/los rectangulos puedes hacer que el texto permanezca dentro posicionandolo según un punto defimido por loos vertices del rectangulo y ocultando lo que veas más feo
try
Sé cómo mantener UN texto dentro del rectángulo, pero no me quedó claro cómo realizarlo con los textos aleatorizados. Tengo que asociar cada texto de la lista aleatoria con un punto de un rectánguo que aún no ha sido creado... eso no me quedó claro cómo hacerlo.
normalmente es imposible trabajar en GG con objetos que aún no han sido creados
lo habitual es crear todo lo que haga falta y mantenerlo oculto hasta que se deba ver
crea los rectangulos con los textos y mantenlos ocultos hasta que un booleano sea true
quizás encuentres algo que te ayude en
https://www.geogebra.org/se...
A possibility in the attachment
un esempio: per avviare/fermare l'animazione cliccare sul pelsante on off
Comments have been locked on this page!