forked from root/public
davhojt
2 years ago
committed by
Dav Hojt
2 changed files with 39 additions and 29 deletions
@ -1,45 +1,44 @@
|
||||
#### Functional |
||||
|
||||
##### Does the AI not crash because of too much usage of CPU? |
||||
|
||||
##### Modify the link so that you use the AI from the user that is being audited [ai.js](<https://((DOMAIN))/git/GITHUB_LOGIN/tron/raw/branch/master/ai.js>) |
||||
##### Open the project, and delete `index.html` if it exists. |
||||
|
||||
##### and [random.js](<https://((DOMAIN))/git/root/public/raw/branch/master/subjects/tron/ai/random.js>). Try three times, changing the seed each time. The best of three, wins |
||||
##### Copy the game engine ([index.html](https://((DOMAIN))/git/root/public/raw/branch/master/subjects/tron/game_students/index.html)) to the root of the student's project. |
||||
|
||||
###### Did the audited AI won against `random` AI? |
||||
##### Create a simple web server by running the following command: |
||||
|
||||
##### Modify the link so that you use the AI from the user that is being audited [ai.js](<https://((DOMAIN))/git/GITHUB_LOGIN/tron/raw/branch/master/ai.js>) |
||||
```sh |
||||
$ python3 -m http.server |
||||
Serving HTTP on :: port 8000 (http://[::]:8000/) |
||||
``` |
||||
|
||||
##### and [right.js](<https://((DOMAIN))/git/root/public/raw/branch/master/subjects/tron/ai/right.js>). Try three times, changing the seed each time. The best of three, wins |
||||
##### Open a web browser, and go to the specified port. In the above case, that will be http://localhost:8000. |
||||
|
||||
###### Did the audited AI won against `right` AI? |
||||
|
||||
##### Modify the link so that you use the AI from the user that is being audited [ai.js](<https://((DOMAIN))/git/GITHUB_LOGIN/tron/raw/branch/master/ai.js>) |
||||
##### Does the AI not crash because of too much usage of CPU? |
||||
|
||||
##### and [snail.js](<https://((DOMAIN))/git/root/public/raw/branch/master/subjects/tron/ai/snail.js>). Try three times, changing the seed each time. The best of three, wins |
||||
##### Battle `ai.js` versus `random.js`. It is best out of 3. Delete the seed before each go. http://localhost:8000/?ai=https://((DOMAIN))/git/root/public/raw/branch/master/subjects/tron/ai/random.js+ai.js |
||||
|
||||
###### Did the audited AI won against `snail` AI? |
||||
###### Did `ai.js` win `random.js` at least 2 times out of the 3 games? |
||||
|
||||
###### Does the code avoid [deep nesting](https://testing.googleblog.com/2017/06/code-health-reduce-nesting-reduce.html)? |
||||
##### Battle `ai.js` versus `right.js`. It is best out of 3. Delete the seed before each go. http://localhost:8000/?ai=https://((DOMAIN))/git/root/public/raw/branch/master/subjects/tron/ai/right.js+ai.js |
||||
|
||||
##### Modify the link so that you use the AI from the user that is being audited [ai.js](<https://((DOMAIN))/git/GITHUB_LOGIN/tron/raw/branch/master/ai.js>) |
||||
###### Did `ai.js` win `right.js` at least 2 times out of the 3 games? |
||||
|
||||
##### and [hard.js](<https://((DOMAIN))/git/root/public/raw/branch/master/subjects/tron/ai/hard.js>). Try three times, changing the seed each time. The best of three, wins |
||||
##### Battle `ai.js` versus `snail.js`. It is best out of 3. Delete the seed before each go. http://localhost:8000/?ai=https://((DOMAIN))/git/root/public/raw/branch/master/subjects/tron/ai/snail.js+ai.js |
||||
|
||||
###### Did the audited AI won against `hard` AI? |
||||
###### Did `ai.js` win `snail.js` at least 2 times out of the 3 games? |
||||
|
||||
#### Bonus |
||||
###### Does the code avoid [deep nesting](https://testing.googleblog.com/2017/06/code-health-reduce-nesting-reduce.html)? |
||||
|
||||
##### Modify the link so that you use the AI from the user that is being audited [ai.js](<https://((DOMAIN))/git/GITHUB_LOGIN/tron/raw/branch/master/ai.js>) |
||||
##### Battle `ai.js` versus `hard.js`. It is best out of 3. Delete the seed before each go. http://localhost:8000/?ai=https://((DOMAIN))/git/root/public/raw/branch/master/subjects/tron/ai/hard.js+ai.js |
||||
|
||||
##### and [license-to-kill.js](<https://((DOMAIN))/git/root/public/raw/branch/master/subjects/tron/ai/license-to-kill.js>). Try three times, changing the seed each time. The best of three, wins |
||||
###### Did `ai.js` win `hard.js` at least 2 times out of the 3 games? |
||||
|
||||
###### +Did the audited AI won against `license-to-kill` AI? |
||||
#### Bonus |
||||
|
||||
##### If you have an AI |
||||
##### Battle `ai.js` versus `licence-to-kill.js`. It is best out of 3. Delete the seed before each go. http://localhost:8000/?ai=https://((DOMAIN))/git/root/public/raw/branch/master/subjects/tron/ai/licence-to-kill.js+ai.js |
||||
|
||||
##### Modify the link so that you use the AI from the user that is being audited [ai.js](<https://((DOMAIN))/git/GITHUB_LOGIN/tron/raw/branch/master/ai.js>) |
||||
###### +Did `ai.js` win `licence-to-kill.js` at least 2 times out of the 3 games? |
||||
|
||||
##### and **your AI**. Try three times, changing the seed each time. The best of three, wins |
||||
##### If you have an AI, and are prepared for battle. Modify the URL to battle against your AI. Best out of 3. |
||||
|
||||
###### +Did the audited AI won against your AI? |
||||
|
Loading…
Reference in new issue