2-Player-Mahjong

From UBC Wiki
Jump to: navigation, search

Title

Authors: Crystal Kwong, Aurlin Dhillon

What is the Problem?

Mahjong is a strategic game where you must take turns drawing and discarding tiles until you have a winning hand. We are attempting to simulate a 2-player version of said game. The rules are fairly simple. There are 72 tiles in the game, and two types of tiles (fire and water). There are fire tiles from 1-9, and 4 of each, and the same for water tiles. Each player has 13 tiles, and take turns drawing cards while simultaneously discarding one of their own. The goal of the game is to make 4 patterns (a straight ([1,2,3 fire], [4,5,6 water], or 3 of a kind ([7,7,7 fire], [2,2,2 water], etc.) and 1 pair. We have done this using Prolog and will see if implementing it in Haskell will be more effective.

What is something extra?

What did we learn from doing this?

This part will be filled out after the project is done.