PageRenderTime 73ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/website/index.php

https://github.com/jnwhiteh/aichallenge
PHP | 64 lines | 55 code | 8 blank | 1 comment | 6 complexity | c23d09f1ce91db17b5e4db28be3f3128 MD5 | raw file
  1. <?php
  2. include('header.php');
  3. require_once('memcache.php');
  4. if(file_exists('server_message.html')) {
  5. //Used to convey a message on the front page
  6. include('server_message.html');
  7. }
  8. ?>
  9. <!--<MarkdownReplacement with="competition.md">--><h1>Introducing Ants</h1>
  10. <p>The Google AI Challenge is all about creating artificial intelligence, whether you are a beginning programmer or an expert. Using one of the easy-to-use starter kits, you will create a computer program (in any language) that controls a colony of ants which fight against other colonies for domination.</p>
  11. <p>It only takes 5 minutes to submit one of the starter kits to the website and watch your ant colony fight for domination against colonies created by other people from around the world. From there check out the tutorials on how to locally run your bot and begin programming!</p>
  12. <!--</MarkdownReplacement>-->
  13. <p>Computer Programs Duking it Out with Ants:</p>
  14. <?php
  15. $last_game_id = 0;
  16. if ($memcache)
  17. $last_game_id = $memcache->get('last_game_id');
  18. if (!$last_game_id) {
  19. $last_game_id = 0;
  20. }
  21. include 'visualizer_widget.php';
  22. visualize_game($game_id=strval($last_game_id),false,550,550);
  23. ?>
  24. <h2>Planet Wars Final Rankings</h2>
  25. <p>Congratulations to this term's winner, <a href="http://quotenil.com/">
  26. Gábor Melis</a>! Whereas the Google AI Challenge has traditionally been
  27. dominated by entries written in languages like
  28. <a href="http://ai-contest.com/language_profile.php?language=C%2B%2B">C++</a>,
  29. Gábor has solidly taken the top spot with an innovative algorithm. His
  30. entry is one of just 33 submissions written in
  31. <a href="http://ai-contest.com/language_profile.php?language=Lisp">Lisp</a>,
  32. and is entitled <a href="http://ai-contest.com/profile.php?user=8565">
  33. bocsimacko</a>. Congratulations Gábor!</p>
  34. <p>A big congratulations also goes out to the runners up,
  35. <a href="http://ai-contest.com/profile.php?user=7026">_iouri_</a> and
  36. <a href="http://ai-contest.com/profile.php?user=11248">Slin-.-</a>,
  37. as well as all the finalists in the top 100. With over 4600 submissions
  38. received, securing a spot in the top 100 was no easy task!</p>
  39. <p>On behalf of <a href="http://www.google.com">Google</a> and the
  40. <a href="http://csclub.uwaterloo.ca">University of Waterloo Computer
  41. Science Club</a>, we would like to thank everybody who took part in the
  42. Google AI Challenge. This term was the best yet, with more than 4600 working
  43. entries submitted by people from 112 different countries. Thank you!</p>
  44. <p>We would also like to thank all the <a href="thanks.php">people</a>
  45. who generously volunteered their time and mad skills to make the Google
  46. AI Challenge happen.</p>
  47. <p>Final rankings can be found <a href="rankings.php">here</a>. These
  48. rankings are based on the
  49. <a href="http://en.wikipedia.org/wiki/Elo_rating_system">Elo rating
  50. system</a>. Click on any player's name to see their game history. If
  51. you crave more interesting statistics and rankings, check out the
  52. <a href="country_rankings.php">country rankings</a> and
  53. <a href="organization_rankings.php">organization rankings</a>. Also check
  54. out <a href="http://ai-contest.com/forum/viewtopic.php?f=19&t=1184">
  55. this cool forum thread</a> for tons of the most interesting game replays!</p>
  56. <?php include 'footer.php'; ?>