Spiders Lua Client

This is the root of you AI. Stay out of the joueur/ folder, it does most of the heavy lifting to play on our game servers. Your AI, and the game objects it manipulates are all in games/spiders/, with your very own AI living in games/spiders/ai.lua for you to make smarter.

How to Run

This client does not work on the Campus rc##xcs213 Linux machines, but it can work on your own Windows/Linux/Mac machines. You just need to install lua 5.1 and luajit, both which are easy to install.


Make sure you have the package lua5.1, lua-socket, and luajit installed, then:

./testRun myOwnGameSession


Just download LuaDist. That package has everything you need to run the Lua client, and actually has LuaJIT to run Lua. Place it the contents anywhere, then make sure to add the path to the bin/ folder in LuaDist to your Path. Then you can:

lua main.lua Spiders -s r99acm.device.mst.edu -r myOwnGameSession


There is a Makefile provided, but it is empty as Lua is an interpreted language. If you want to add make steps feel free to, but you may want to check with an Arena dev to make sure the Arena has the packages you need to use in make.

Other Notes

It is possible that on your Missouri S&T S-Drive this client will not run properly. This is not a fault with the client, but rather the school's S-Drive implimentation changing some file permissions during run time. We cannot control this. Instead, we recommend cloning your repo outside the S-Drive and use an SCP program like WinSCP to edit the files in Windows using whatever IDE you want if you want to code in Windows, but compile in Linux.


Cutter A Spiderling that can cut existing Webs.
GameObject An object in the game.
AI the AI functions for the Spiders game.
Spider A Spider in the game.
Nest A location (node) connected to other Nests via Webs (edges) in the game that Spiders can converge on, regardless of owner.
Weaver A Spiderling that can alter existing Webs by weaving to add or remove silk from the Webs, thus altering its strength.
Player A player in this game.
Spitter A Spiderling that creates and spits new Webs from the Nest it is on to another Nest, connecting them.
Web A connection (edge) to a Nest (node) in the game that Spiders can converge on (regardless of owner).
Game There's an infestation of enemy spiders challenging your queen broodmother spider! Protect her and attack the other broodmother in this turn based, node based, game.
BroodMother The Spider Queen.
Spiderling A Spider spawned by the BroodMother.
generated by LDoc 1.4.2