Functional Calculator Inside DOOM Game
You’ve seen id Software’s classic DOOM game running on a Milky Way bar, now a programmer has created a functional calculator inside the title, and without using any mods. Danny Spencer didn’t build the adding machine in a level editor, as he wrote code in the programming language Clojure using Boolean algebra.



Since monsters can’t activate switches or remote-open doors in vanilla DOOM, he exploited a quirk in the Doom engine. How so? All doors are associated with a sector, and if one shares a sector with another, the two doors will always open and close together. Now monsters can’t open remote doors, but they can open local doors. This means that if the local door shares a sector with other doors, then monsters can remotely open doors. Download it here now.

RG353V Retro Video Handheld Game Console Android 11+Linux System, 3.5 Inches IPS Screen 64G TF Card 4420+...
  • [ANBERNIC RG353V 3.5 Inches Full viewing Angle IPS screen]: 3.5-inch IPS full viewing angle, zero distance OCA full fit/ 640*480, multi-touch, The...
  • [Dual OS System Android11+Linux ]: 2.4/5G WIFI 802.11a/b/g/n/ac,Bluetooth 4.2 Android 32GB high-speed eMMC 5.1, Linux 16GB TF, support for dual TF...
  • [3200MAH LARGE CAPACITY BATTERY ]: Built-in 3200mAh large capacity lithium battery. Long standby time and long battery life. Support up to 6 hours of...

Functional Calculator Inside DOOM Game

It can be difficult to imagine how monsters teleporting to places can represent addition. This is one of those problems that’s easier to understand in smaller pieces going bottom-up. We went from NAND, and then to binary decision diagrams,” said the programmer.

Author

A technology, gadget and video game enthusiast that loves covering the latest industry news. Favorite trade show? Mobile World Congress in Barcelona.