Skip to content

banyapon/TheGhoulVillage

Repository files navigation

TheGhoulVillage

TheGhoulVillage is a horror game developed using Unity for the Thailand Horror Jam 2024, themed around folklore. This project draws inspiration from the chilling tales of ghouls, a prominent figure in Thai folklore, and incorporates educational technology to solve the Josephus Problem.

Screenshot of a The Ghoul Village Game Play.

Gameplay

Players find themselves trapped in a village haunted by ghouls. To escape, they must solve a series of puzzles based on the Josephus Problem. This classic mathematical problem involves selecting elements from a circular list in a specific order. In our game, players must apply logical reasoning and strategic thinking to determine the correct sequence of actions to survive.

Screenshot of a The Ghoul Village Game Play.

Screenshot of a The Ghoul Village Game Play.

Technical Details

  • Game Engine: Unity
  • Theme: Thai Folklore (Ghouls)
  • Core Mechanic: Josephus Problem
  • Graphics: Bing AI Image Creator and Photopea.com
  • Code: Gemini Advanced (GEM AI Code Assistant) for code review and cleanup
  • Education Technology: Integration of mathematical concepts into gameplay

Josephus Problem

The Josephus Problem is a mathematical puzzle where n people are standing in a circle and counting around them from a certain point until every kth person is eliminated. The last person remaining is the "survivor".

How Josephus Problem Work.

How Josephus Problem Work.

Mathematical Representation:

Let f(n, k) be the position of the survivor when there are n people initially and you count k people each time.

  • f(1, k) = 1
  • f(n, k) = (f(n-1, k) + k) mod n

Source Code

All source code for this project is freely available and can be used as a starting point for further development and experimentation. Feel free to fork this repository and contribute to the project.

Contributors

  • Dhurakij Pundit University
  • Daydev Co., Ltd.
  • Asst. Prof. Banyapon Poolsawas

Acknowledgements

We would like to thank Bing AI Image Creator, Photopea.com, and Gemini Advanced for providing the tools necessary to create this game.

Play Online at: TheGhoulVillage