PHP Puzzles:
Writing a Dice Roller

By Sherri Wheeler

In our last issue, we looked at a problem from game development—generating random loot with different rarities. We saw multiple solutions, including a common technique used in many games. Our new puzzle asked us to calculate dice rolls for tabletop games.

Read in Full

This article was originally published in the August 2020 issue of php[architect] magazine. To read the complete article please subscribe or purchase the complete issue.

Leave a comment

Use the form below to leave a comment: