Code Monkey home page Code Monkey logo

code-a-la-mode's People

Contributors

2stepsfr0mhell avatar cgjupoulton avatar chickentuna avatar csj avatar eulerschezahl avatar hixie avatar illedan avatar kevinsandow avatar lorcqc avatar mattehh avatar maximecg avatar nantoniazzi avatar orabig avatar treeplate avatar unihedro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

code-a-la-mode's Issues

Please make a runnable jar file

First of all, I am not a Java developer and I don't know much about Java ecosystem. Just want to write bot locally.

I try to make a runnable jar file via mvn but can't get it work, here is the story

  1. Add main class

The readme mention com.codingame.game.Main.java but I can only found Main at test, so I pick com/codingame/game/sample/Main

$ grep -r Main src/
src/test/java/com/codingame/game/sample/Main.java:public class Main {
src/test/starterkit/starterAI.cs:        HasPlate = Content.Contains(MainClass.Dish);
src/test/starterkit/starterAI.cs:public class MainClass
src/test/starterkit/starterAI.cs:    static void Main()

and add following to pom.xml

$ git diff
diff --git a/pom.xml b/pom.xml
index 142f2f1..555fa54 100644
--- a/pom.xml
+++ b/pom.xml
@@ -46,6 +46,17 @@

     <build>
         <plugins>
+            <plugin>
+              <groupId>org.apache.maven.plugins</groupId>
+              <artifactId>maven-jar-plugin</artifactId>
+              <configuration>
+                <archive>
+                  <manifest>
+                    <mainClass>com.codingame.game.sample.Main</mainClass>
+                  </manifest>
+                </archive>
+              </configuration>
+            </plugin>
             <plugin>
                 <groupId>org.jetbrains.kotlin</groupId>
                 <artifactId>kotlin-maven-plugin</artifactId>
  1. run mvn package to create jar
$ mvn package

$ find target/ -name *.jar
target/code-a-la-mode-1.0-SNAPSHOT.jar

But when I try to run the jar file, I got an error

$ java -jar target/code-a-la-mode-1.0-SNAPSHOT.jar
Error: Could not find or load main class com.codingame.game.sample.Main
Caused by: java.lang.ClassNotFoundException: com.codingame.game.sample.Main

Please help me solve the problem.


With current system, is it possible to use a bot in starterkit for testing?
How the communication (stdin/stdout) should be, if I want to write a bot that is not java?

It would be nice have some tool (CLI) like

runner <bot1> <bot2> <bot3> <bot4>

where the runner spawn botN as executable and manage stdin/stdout automatically.

Upon further investigation, I have found sdk documentation on game-runner but unfortunately I don't have enough Java skill to make it.

Players spawn

It would be good to precise in the statement that the players initial positions are not represented by '.'.

Last frame of a replay missing

Given a bot that is just waiting, all 3 matches should be identical.

At the end of the first round:
image

At the end of the last round:
image

Compare the prizes at the bottom, something doesn't add up here (I didn't check if it's a UI glitch or the game itself).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.