← eng-mohamed-elsayedahmed.github.io

Games

Nine small games. Each is one HTML file with no libraries and no build step — open the page and it plays. All of them work with a keyboard on desktop and with touch on a phone.

/games/snake/

Snake

The classic. Speeds up with every bite, and refuses the instant reversal that would kill you unfairly.

  • arrows / WASD
  • swipe
  • best score
/games/2048/

2048

Slide and merge to reach 2048, then keep going for a bigger tile. One level of undo when a move goes wrong.

  • arrows / WASD
  • swipe
  • undo
/games/minesweeper/

Minesweeper

Three sizes. The first click is always safe, so no game is ever lost on the opening move.

  • click / right click
  • long press to flag
  • fastest time
/games/breakout/

Breakout

The paddle follows your mouse or finger, and where the ball lands on it decides the angle it leaves at.

  • mouse / drag
  • arrows
  • levels
/games/memory/

Memory

Match every pair in as few moves as you can. Three sizes, and your best run is kept for each of them.

  • click / tap
  • three sizes
  • fewest moves
/games/connect4/

Connect Four

Against a computer that searches ahead with minimax and alpha-beta pruning — or against a friend on the same screen.

  • three strengths
  • two players
  • keys 1–7
/games/tetris/

Tetris

Seven-bag randomiser so droughts never get absurd, a ghost showing where the piece lands, and hard drop.

  • arrows
  • touch pad
  • levels
/games/sudoku/

Sudoku

Puzzles generated here and checked to have exactly one solution. Four difficulties, pencil marks and a hint.

  • four levels
  • pencil marks
  • unique solution
/games/simon/

Simon

Repeat the sequence as it grows. Each pad has its own tone, generated live rather than loaded from a file.

  • sound
  • keys 1–4
  • three speeds