Hangman Game

Hangman Game
Loading the math board and drawing, please wait…
2018-10-02 01:40
In collections Frequency distribution
This example demonstrates an interactive Hangman game, showcasing probability and statistics concepts through random letter selection and displaying remaining attempts. Core math concepts include probability, statistics, binomial distribution, and geometric constructions. It utilizes GeoGebra commands like OrthogonalLine, Mirror, Segment, Circle, Length, RandomElement, Sequence, Histogram, Element, and Sum. Suitable for high school students learning probability statistics and geometric constructions.

GeoGebra Commands & Parameters

  1. OrthogonalLine(G_1, xAxis) → r
  2. Mirror(A, B) → A'
  3. Segment(I, J) → f
  4. Mirror(K, f) → K'
  5. Segment(K, J) → g
  6. Segment(J, K') → h
  7. Segment(H_1, G_1) → i
  8. Segment(G_1, D) → j
  9. Segment(E, F) → k
  10. Segment(D, B) → l
  11. Segment(C, A) → m
  12. Segment(A, A') → p
  13. Circle(L, I) → c
  14. Segment(O, O') → q
  15. Segment(P, Q) → s
  16. Length(no) → intentos
  17. Segment(Q, P') → t
  18. RandomElement(lista) → palabra
  19. Length(palabra) → n
  20. Sequence(Take[palabra, k, k], k, 1, n) → letras
  21. Segment(C, A') → b
  22. Histogram(Sequence[x(G) + (0.6 * k), k, 0, 27], frec) → a
  23. Sequence(Segment[A + (2 + (0.6 * k), 0), A + (2.4 + (0.6 * k), 0)], k, 1, n) → l1
  24. Sequence(Text[Element[letras, k], A + (2.05 + (0.6 * k), 0.1)], k, 1, n) → descubre
  25. Element(descubre, A1) → B1
  26. Element(descubre, A2) → B2
  27. Element(descubre, A3) → B3
  28. Element(descubre, A4) → B4
  29. Element(descubre, A5) → B5
  30. Element(descubre, A6) → B6
  31. Element(descubre, A7) → B7
  32. Element(descubre, A8) → B8
  33. Element(descubre, A9) → B9
  34. Element(descubre, A10) → B10
  35. Element(descubre, A11) → B11
  36. Element(descubre, A12) → B12
  37. Element(descubre, A13) → B13
  38. Element(descubre, A14) → B14
  39. Element(descubre, A15) → B15
  40. Element(descubre, A16) → B16
  41. Element(descubre, A17) → B17
  42. Element(descubre, A18) → B18
  43. Element(descubre, A19) → B19
  44. Element(descubre, A20) → B20
  45. Sum(Sequence[If[IndexOf[Element[letras, k], palabra2] > 0, 1, 0], k, 1, n]) → aciertos

AI Drawing Prompt Reference

Draw a hangman game graphic, including a horizontal line as the ground, a vertical line as the center, and use mirroring and line segments to create the hangman's parts, such as the beam, support poles, and rope. Randomly select a word and display its letters below. When the user guesses a letter correctly, show the letter in the corresponding position.
The prompt above was compiled from the original drawing commands and is for reference only.