What kind of game is prisonblock? Any open source that I can learn the math behind it for user actions/gameplay?
As it says in the browser title, Prison Block is a "FREE prison RPG game" (RPG meaning Role-Playing Game). It also appears to be multiplayer and therefore can be considered a "MMO" or "MMORPG", albeit browser-based (in contrast to popular MMOs such as World of Warcraft).
I recommend looking at the source of Legend of the Green Dragon (sourceforge project). I'm not sure if it's still being updated, but I remember finding it several years ago and being impressed by it; so much so, that I made my own little web-based multiplayer game (Magbor, sf proj - warning, it's messy and not too impressive!). LotGD is a web-based multiplayer RPG like Prison Block, and completely open source.