botsArena/README.md

51 lines
2.3 KiB
Markdown
Raw Permalink Normal View History

2015-11-25 22:44:40 +01:00
# botsArena
2015-12-25 18:48:32 +01:00
Source code of [bot's Arena](https://botsarena.tinad.fr/)
2015-11-25 22:44:40 +01:00
2015-12-25 18:48:32 +01:00
It's a website for programming AI challenges. Everyone can read a game's specifications. Program a bot for play to it. Host the bot and register on bot's Arena.
![image](https://raw.githubusercontent.com/gnieark/botsArena/master/html/principe.gif)
# Still in dev
2015-12-26 19:35:11 +01:00
- The stable website (Using github API, Vhost is synchronized to branch master) is [https://botsarena.tinad.fr/](https://botsarena.tinad.fr/)
2015-12-25 18:48:32 +01:00
# Contribute
2015-12-26 19:35:11 +01:00
You are welcome, Make pull requests on branch dev. Im available on twitter [@gnieark](https://twitter.com/gnieark) in order to talk.
2015-12-25 18:48:32 +01:00
# install it
2015-12-25 20:40:05 +01:00
I'd better like you to help me to improve [bot's Arena](https://botsarena.tinad.fr/), and you to make your own bots to play challenges. It would be more funny having lot of bots in one arena rather than lot of arenas.
2015-12-25 18:48:32 +01:00
See dockerFile and associated scripts to understand what is needed.
2015-12-25 18:48:32 +01:00
To test an image of bots arena with docker:
2016-12-10 19:18:49 +01:00
2017-02-08 18:41:26 +01:00
make
docker build .
docker run --name hey -p 127.0.0.1:8080:80 DockerImageId
For nginx Rewrite rules in server directive are:
2016-12-10 19:18:49 +01:00
2017-01-30 00:00:14 +01:00
rewrite '^/([a-zA-Z]{1,})/doc-([a-z]{2})$' /index.php?doc=$1&lang=$2 last;
rewrite '^/p/([a-zA-Z]{1,})/(.*)-([a-z]{2})$' /index.php?page=$1&params=$2&lang=$3 last;
rewrite '^/p/([a-zA-Z]{1,})/(.*)$' /index.php?page=$1&params=$2 last;
rewrite '^/p/(.*)-([a-z]{2})$' /index.php?page=$1&lang=$2 last;
rewrite '^/p/(.*)$' /index.php?page=$1 last;
rewrite '^/([a-zA-Z]{1,})/scores$' /index.php?scores=$1 last;
rewrite '^/([a-zA-Z]{1,})-([a-z]{2})$' /index.php?arena=$1&lang=$2 last;
rewrite '^/([a-zA-Z]{1,})/doc$' /index.php?doc=$1 last;
rewrite '^/([a-zA-Z]{1,})$' /index.php?arena=$1 last;
2016-12-10 19:18:49 +01:00
2015-12-25 18:48:32 +01:00
# License
Bot's Arena , Website for Artificials intelligences duels.
2015-12-25 18:51:12 +01:00
2015-12-25 18:48:32 +01:00
Copyright (C) 2015-2016 [Gnieark](https://blog-du-grouik.tinad.fr/)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2015-12-25 20:40:05 +01:00
GNU General Public License for more details.