{"action":"created","issue":{"url":"https://api.github.com/repos/GL-MPRI-2014/GL_MPRI_2014/issues/168","labels_url":"https://api.github.com/repos/GL-MPRI-2014/GL_MPRI_2014/issues/168/labels{/name}","comments_url":"https://api.github.com/repos/GL-MPRI-2014/GL_MPRI_2014/issues/168/comments","events_url":"https://api.github.com/repos/GL-MPRI-2014/GL_MPRI_2014/issues/168/events","html_url":"https://github.com/GL-MPRI-2014/GL_MPRI_2014/issues/168","id":52380828,"number":168,"title":"Avancement du langage de script","user":{"login":"VLanvin","id":6551706,"avatar_url":"https://avatars.githubusercontent.com/u/6551706?v=3","gravatar_id":"","url":"https://api.github.com/users/VLanvin","html_url":"https://github.com/VLanvin","followers_url":"https://api.github.com/users/VLanvin/followers","following_url":"https://api.github.com/users/VLanvin/following{/other_user}","gists_url":"https://api.github.com/users/VLanvin/gists{/gist_id}","starred_url":"https://api.github.com/users/VLanvin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VLanvin/subscriptions","organizations_url":"https://api.github.com/users/VLanvin/orgs","repos_url":"https://api.github.com/users/VLanvin/repos","events_url":"https://api.github.com/users/VLanvin/events{/privacy}","received_events_url":"https://api.github.com/users/VLanvin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GL-MPRI-2014/GL_MPRI_2014/labels/script","name":"script","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/GL-MPRI-2014/GL_MPRI_2014/milestones/4","labels_url":"https://api.github.com/repos/GL-MPRI-2014/GL_MPRI_2014/milestones/4/labels","id":908086,"number":4,"title":"Release","description":"Release of the project before the final oral. ","creator":{"login":"Saroupille","id":2529963,"avatar_url":"https://avatars.githubusercontent.com/u/2529963?v=3","gravatar_id":"","url":"https://api.github.com/users/Saroupille","html_url":"https://github.com/Saroupille","followers_url":"https://api.github.com/users/Saroupille/followers","following_url":"https://api.github.com/users/Saroupille/following{/other_user}","gists_url":"https://api.github.com/users/Saroupille/gists{/gist_id}","starred_url":"https://api.github.com/users/Saroupille/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Saroupille/subscriptions","organizations_url":"https://api.github.com/users/Saroupille/orgs","repos_url":"https://api.github.com/users/Saroupille/repos","events_url":"https://api.github.com/users/Saroupille/events{/privacy}","received_events_url":"https://api.github.com/users/Saroupille/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":11,"state":"open","created_at":"2014-12-18T09:59:23Z","updated_at":"2015-01-04T17:16:15Z","due_on":"2015-01-13T23:00:00Z","closed_at":null},"comments":6,"created_at":"2014-12-18T16:01:51Z","updated_at":"2015-01-04T18:44:13Z","closed_at":null,"body":"J'ouvre un ticket pour parler des mises à jour du langage de script, et surtout pour récupérer vos critiques concernant le langage en lui-même. Voici les deux derniers ajouts : \r\n\r\n* Commentaires : tous les commentaires sont monolignes, avec une syntaxe à la C (ie. `// comment`)\r\n\r\n* Construction d'unités : l'IA peut maintenant construire des unités. Le fonctionnement est similaire à ce qui a déjà été fait : c'est le point d'entrée `build building1, building2, ... { code }` qui se charge de tout. Il est aussi possible de faire un point d'entrée `build default { code }` et d'accéder à `do_nothing` dans `code` (pour plus de précisions, voir test.script). On a aussi accès à `selected_building` de type `building` dans ce point d'entrée.\r\nLe point d'entrée attend un type de retour `string` correspondant au nom de l'unité à construire. Si l'unité n'est pas constructible à ce bâtiment, ou si vous n'avez pas vérifié que le bâtiment était libre, ~~vous perdez~~ vous passez votre tour.\r\nToutes les constructions sont appelées à la fin du tour, lorsque toutes les unités ont été jouées. L'ordre d'appel des buildings est arbitraire.\r\n\r\nNote : pour l'instant, aucune fonction sur les buildings n'est exposée (en gros, on ne peut quasi rien faire). \r\n\r\n\r\nJe ne vais pas tarder à mettre à jour le wiki concernant ces ajouts. N'hésitez pas à intervenir !\r\n\r\n\r\nBonus : La marche des Walkyries, version OCAWAI\r\n![walkyries](https://cloud.githubusercontent.com/assets/6551706/5491505/08136e98-86da-11e4-9377-86806e23c982.png)\r\n"},"comment":{"url":"https://api.github.com/repos/GL-MPRI-2014/GL_MPRI_2014/issues/comments/68643588","html_url":"https://github.com/GL-MPRI-2014/GL_MPRI_2014/issues/168#issuecomment-68643588","issue_url":"https://api.github.com/repos/GL-MPRI-2014/GL_MPRI_2014/issues/168","id":68643588,"user":{"login":"OlivierMarty","id":4533890,"avatar_url":"https://avatars.githubusercontent.com/u/4533890?v=3","gravatar_id":"","url":"https://api.github.com/users/OlivierMarty","html_url":"https://github.com/OlivierMarty","followers_url":"https://api.github.com/users/OlivierMarty/followers","following_url":"https://api.github.com/users/OlivierMarty/following{/other_user}","gists_url":"https://api.github.com/users/OlivierMarty/gists{/gist_id}","starred_url":"https://api.github.com/users/OlivierMarty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OlivierMarty/subscriptions","organizations_url":"https://api.github.com/users/OlivierMarty/orgs","repos_url":"https://api.github.com/users/OlivierMarty/repos","events_url":"https://api.github.com/users/OlivierMarty/events{/privacy}","received_events_url":"https://api.github.com/users/OlivierMarty/received_events","type":"User","site_admin":false},"created_at":"2015-01-04T18:44:13Z","updated_at":"2015-01-04T18:44:13Z","body":"J'ai l'impression que le code\r\nfun test () = { [] }\r\ntest ()\r\n\r\nne type pas : j'ai un erreur qui me dit que la fonction test à le type any_type list, et pas unit -> any_type list"}}