sufendyc / battleships

Open platform for developing and fighting bots.
2 stars 2 forks source link

Setup guide #5

Closed sufendyc closed 10 years ago

sufendyc commented 10 years ago

Hi,

Can you make a simple setup guide so that we can test it locally? This will help us in starting to contribute to the source as well.

I tried to set it up once, but there are python dependencies that kind of confusing. Like it required a library (can't remember the name) and when I do a pip search, it returned me like tons of different modules with that description. Or do you have the package management already?

wioota commented 10 years ago

hi fendy i have a local version working but i noticed mine now has an issue where it runs okay but server throws an illegal bot move error. James when will the extra detail in the exception get printed to screen?

jhibberd commented 10 years ago

Sure, I'll work on a setup guide and installer. There are some non-python dependencies (such as MongoDB) which I can provide simple instructions for installing but they will be Unix based instructions, is that OK with you @sufendyc ?

sufendyc commented 10 years ago

Yeap... a simple one will do. Thank you.

wioota commented 10 years ago

https://gist.github.com/wioota/2fd1704aba93dcccc7ff#file-gistfile1-py

Try this out @sufendyc

BTW - it expects your bot to receive a shot_grid passed to main so I have something like:

def main(shot_grid = []):
    if len(sys.argv) > 1:
        shot_grid = sys.argv[1]

    if shot_grid:
        shot_grid = shot_grid.split(',')
sufendyc commented 10 years ago

@wioota ImportError: No module named testicle2 Your robot's name is testicle2? why!!!! lol

jhibberd commented 10 years ago

@sufendyc has used the install script to successfully install the project locally. Work to enable a bot to be run from the command line will be addressed by the following ticket: https://github.com/jhibberd/battleships/issues/6