Mike->Riichi
Wednesday, October 28, 2015
Rendering, three js
So I started looking at rendering tonight. Originally I was going to look building the table in code, but after messing with it for a bit I have decided that I can't get the level of detail I am looking for using that method. Instead I am going to look into some blender tutorials to build the table on that and then import it into the browser using three js. Should be interesting considering I have very little experience creating 3d models.
Tuesday, October 27, 2015
The solution to : The honest tiles
Alright I figured out a solution. Basically I am going to have the best of both worlds. I am going to traverse the tiles like the rule intended, but after I find that tile, I am going to make it the first tile in the collection by reordering it. This is greatly simplify drawing off the wall.
The honest tiles
So I have this dilemma where I have a chance to cheat or be honest as far as what is happening in the code. This is a feature the user would never see and I am debating if it would really make a difference.
So here is the situation. In the beginning of the game, the east wind player rolls 2 dice, counts that many player counter clock-wise, and then that chosen player then slices the wall starting from there right so that the total amount on the dice match the number of tiles remaining on the wall.
So I could either mimic this in the code or I could cheat and just say, the tile the player splits on is the start of the collection which is much simpler.
Choices, choices.
So here is the situation. In the beginning of the game, the east wind player rolls 2 dice, counts that many player counter clock-wise, and then that chosen player then slices the wall starting from there right so that the total amount on the dice match the number of tiles remaining on the wall.
So I could either mimic this in the code or I could cheat and just say, the tile the player splits on is the start of the collection which is much simpler.
Choices, choices.
Sunday, October 25, 2015
Qunit TDD
So I am taking a better approach to development with this project. I am doing TDD with Qunit! This should hopefully go a long way toward keeping the game stable over time.
So far the project is progressing pretty good. I pretty much have added all the tiles to the wall in the back end. After I finish that up, I will start looking at starting the game by dealing with the dice rolls and assigning tiles to the players.
I am looking forward to pattern matching on the tiles to check for yakus. Figuring out how to write that pattern matching algorithm could be potentially interesting.
So far the project is progressing pretty good. I pretty much have added all the tiles to the wall in the back end. After I finish that up, I will start looking at starting the game by dealing with the dice rolls and assigning tiles to the players.
I am looking forward to pattern matching on the tiles to check for yakus. Figuring out how to write that pattern matching algorithm could be potentially interesting.
The make shift console
The basic idea here is that I will make things happen and print them out based on what is happening behind the scenes. After that I will write text in the box for things I want to do and hit submit. It will then parse the text and do the action.
Welcome to Mike->Riichi
Welcome to Mike-Riichi.
This blog is about a Riichi Mahjong game I am making. It will be done in html 5 on the browser. I will be targeting ease of use so that anyone can just hop online and begin playing. As I continue to add things to the game, I will be posting here with different thoughts and ideas to better the game. I will definitely be interested in seeing feed back from users in the comments.
So what is Riichi Mahjong?
Riichi Mahjong(also known as Japanese Mahjong) is a game using the Mahjong tile set. It is not however, similar to the Mahjong tile matching game as many people have come to know it. It is probably more similar in nature to rummy with extra added variations. The scoring system however is someone complicated as you can have a combination of things based on your hand. The score is something I'll be discussing in a later blog as I further understand it.
So stay tuned and please look forward to more entries as I develop this game.
This blog is about a Riichi Mahjong game I am making. It will be done in html 5 on the browser. I will be targeting ease of use so that anyone can just hop online and begin playing. As I continue to add things to the game, I will be posting here with different thoughts and ideas to better the game. I will definitely be interested in seeing feed back from users in the comments.
So what is Riichi Mahjong?
Riichi Mahjong(also known as Japanese Mahjong) is a game using the Mahjong tile set. It is not however, similar to the Mahjong tile matching game as many people have come to know it. It is probably more similar in nature to rummy with extra added variations. The scoring system however is someone complicated as you can have a combination of things based on your hand. The score is something I'll be discussing in a later blog as I further understand it.
So stay tuned and please look forward to more entries as I develop this game.
Subscribe to:
Comments (Atom)

