code-a-la-mode's People
Forkers
modaf kamran102 garcia-q unihedro dareagle mickglover vyorick eroui counterbalance egendron orabig abhik1998 wizzup yowa rerosantos mmsatark eugenioamato cheetaah zazapeta lostkid456 treeplate hixie sanpas helron1977 ploruto arwa-milicode-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
- 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>
- run
mvn package
to createjar
$ 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 '.'.
Bug : Plate with 4 items + 1 item in Oven
When a player has a dish with 4 items and use the oven's item, he will end up with a dish with 5 items.
Last frame of a replay missing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.