amymcgovern / spacesettlers Goto Github PK
View Code? Open in Web Editor NEWSpacewar/Spacesettlers game used by the AI class at the University of Oklahoma
License: MIT License
Spacewar/Spacesettlers game used by the AI class at the University of Oklahoma
License: MIT License
Window size isn't calculated right when attached to the Apple TV (causes a null pointer error). Fix this.
Ensure base damage isn't being double counted.
Current implementation does not wrap line graphics around the edges of the canvas.
Implement toroidal wraparound using the existing methods used by, for instance, ShipGraphics.
Do not implement the wraparound within the LineGraphics class.
Null pointer error in the passive heuristic asteroid collector's getMovementEnd().
I was unable to reproduce this on my Windows machine. I have not tried on an Ubuntu 16.04 virtual box. Regardless the code at the error line should check prior to removing null from a list.
From a fresh clone of spacesettlers:
In config/heuristicCoop/SpaceSettlersConfig.xml:
<HighLevelTeamConfig>
<teamName>HeuristicMinerTeam</teamName>
<!-- Pick the one you intend to play against (self versus other) -->
<configFile>passive-heuristic-clientinit.xml</configFile>
</HighLevelTeamConfig>
<BaseConfig>
<teamName>HeuristicMinerTeam</teamName>
</BaseConfig>
ant spacesettlers-coop
logan@logan-Inspiron-5437:~/Documents/School/Senior/Spring 2019/AI/spacesettlers$ ant spacesettlers-coop
Buildfile: /home/logan/Documents/School/Senior/Spring 2019/AI/spacesettlers/build.xml
init:
[mkdir] Created dir: /home/logan/Documents/School/Senior/Spring 2019/AI/spacesettlers/build
[mkdir] Created dir: /home/logan/Documents/School/Senior/Spring 2019/AI/spacesettlers/dist
[mkdir] Created dir: /home/logan/Documents/School/Senior/Spring 2019/AI/spacesettlers/docs/api
compile-all:
[javac] /home/logan/Documents/School/Senior/Spring 2019/AI/spacesettlers/build.xml:48: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 95 source files to /home/logan/Documents/School/Senior/Spring 2019/AI/spacesettlers/build
[javac] Note: /home/logan/Documents/School/Senior/Spring 2019/AI/spacesettlers/src/spacesettlers/ladder/Ladder.java uses unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
jar-spacesettlers:
[unzip] Expanding: /home/logan/Documents/School/Senior/Spring 2019/AI/spacesettlers/lib/JSAP-2.1.jar into /home/logan/Documents/School/Senior/Spring 2019/AI/spacesettlers/build
[unzip] Expanding: /home/logan/Documents/School/Senior/Spring 2019/AI/spacesettlers/lib/kxml2-2-1.3.0.jar into /home/logan/Documents/School/Senior/Spring 2019/AI/spacesettlers/build
[unzip] Expanding: /home/logan/Documents/School/Senior/Spring 2019/AI/spacesettlers/lib/xstream-1.4.2.jar into /home/logan/Documents/School/Senior/Spring 2019/AI/spacesettlers/build
[jar] Building jar: /home/logan/Documents/School/Senior/Spring 2019/AI/spacesettlers/dist/spacesettlers.jar
spacesettlers-coop:
[java] Initial location not provided for team HeuristicMinerTeam...generating: UL (x,y) = 680, 222 LR (x,y) = 1080, 950
[java] Starting ship for team HeuristicMinerTeam in location (952.8285073310178 , 276.37044188808017, 0.0) velocity: 0.0 0.0, 0.0
[java] spacesettlers.simulator.SpaceSettlersSimulator@1a3869f4
[java] transform is AffineTransform[[0.60146252285192, 0.0, 0.0], [0.0, 0.60146252285192, 0.0]]
[java] On time step 0
[java] Team: Pacifist Heuristic Asteroid Collector scored 0.0
[java] java.util.concurrent.ExecutionException: java.lang.NullPointerException
[java] at java.util.concurrent.FutureTask.report(FutureTask.java:122)
[java] at java.util.concurrent.FutureTask.get(FutureTask.java:206)
[java] at spacesettlers.clients.Team.getTeamMovementEnd(Team.java:479)
[java] at spacesettlers.simulator.SpaceSettlersSimulator.advanceTime(SpaceSettlersSimulator.java:698)
[java] at spacesettlers.simulator.SpaceSettlersSimulator.run(SpaceSettlersSimulator.java:1064)
[java] at spacesettlers.simulator.RunSimulator.main(RunSimulator.java:107)
[java] Caused by: java.lang.NullPointerException
[java] at spacesettlers.clients.PacifistHeuristicAsteroidCollectorTeamClient.getMovementEnd(PacifistHeuristicAsteroidCollectorTeamClient.java:233)
[java] at spacesettlers.clients.Team$2.call(Team.java:471)
[java] at spacesettlers.clients.Team$2.call(Team.java:469)
[java] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[java] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[java] at java.lang.Thread.run(Thread.java:748)
With the error repeating for the remainder of the game.
Bullets can hit ships if they are flying fast forward.
Right now there is not enough penalty for dying. Adjust the respawn time.
Make the ladder multi-threaded so that it can handle the larger class size
See if java thread timers work correctly for infinite looping agents now that we are requiring java 1.8 (they never worked right for 1.6 )
when an asteroid is taken, it respawns with the same distribution of stuff. Change this to be randomly chosen each time.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.