Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Rule in the 2048 game (Developers)

posted by Laaca Homepage, Czech republic, 25.07.2022, 00:46

Hello! Only today I discovered the game 2048
It is really very nice and very addictive game. And simple enough for DOS port. There even already exist a pretty DOS port. And what is kind for me, it is done in pascal and it is compilable in Turbo pascal, Freepascal and even TMT pascal.
I am considering a reimplementation in graphic mode but I do not understand the rule about placing a new cells in the board.
In the DOS source it is in function boardPlace in the ENGINE.INC.
What the function does: in the random free cell on the board places a new cell - which in the 90% probability is the cell "2" and in the 10% probability cell "4".
My question is: This is the same algorithm like in the original implementation?

---
DOS-u-akbar!

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 161 users online (0 registered, 161 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum