I just found out that the DarkPlaces console is Turing complete...
get this config file http://mensa.ath.cx/~polzer/temp/math.cfg and type "exec math.cfg" in game. It will calculate the prime numbers from 2 to 79 and print them out as unary numbers... as strings of ones. You can easily make it print more primes by changing the number of "inc v0"s in the big block - or let it run infinitely by removing the inc v0 block altogether (which would only work on a dedicated server because the display won't update while the calculation is running).
The first lines of the file prove that the DP console is Turing complete, that is, that you can do ANY sort of calculation using aliases (simply because it is a known fact that the INC/CLR/JE register machine can). What you can do is just limited by memory... and creepiness of code

Have fun!
BTW: you can also use that file as CPU benchmark. Run the dedicated server like this:
- Code: Select all
$ time nexuiz-dedicated +"exec math.cfg; quit"
It takes 6.21s CPU time on my computer.
EDIT: excuse the slight obfuscation
