Skip to content

Commit

Permalink
readme cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nhshah15 committed Feb 6, 2022
1 parent b089b30 commit 2b51baf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 37 deletions.
41 changes: 5 additions & 36 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,41 +1,10 @@
# Battlecode 2022 Scaffold

This is the Battlecode 2022 scaffold, containing an `examplefuncsplayer`. Read https://play.battlecode.org/getting-started!

### Project Structure

- `README.md`
This file.
- `build.gradle`
The Gradle build file used to build and run players.
- `src/`
Player source code.
- `test/`
Player test code.
- `client/`
Contains the client. The proper executable can be found in this folder (don't move this!)
- `build/`
Contains compiled player code and other artifacts of the build process. Can be safely ignored.
- `matches/`
The output folder for match files.
- `maps/`
The default folder for custom maps.
- `gradlew`, `gradlew.bat`
The Unix (OS X/Linux) and Windows versions, respectively, of the Gradle wrapper. These are nifty scripts that you can execute in a terminal to run the Gradle build tasks of this project. If you aren't planning to do command line development, these can be safely ignored.
- `gradle/`
Contains files used by the Gradle wrapper scripts. Can be safely ignored.


### Useful Commands

- `./gradlew run`
Runs a game with the settings in gradle`.properties
- `./gradlew update`
Update to the newest version! Run every so often

### Acknowledgements
*We love you <3*

- [XSquare for BFS pathfinding](https://github.com/IvanGeffner/battlecode2021/tree/master/thirtyone)
- [Teh Devs for Greedy BugNav](https://github.com/battlecode/battlecode22-lectureplayer/tree/main/src/lectureplayer)
- [printf for allowing us to ~~steal~~ borrow their entire soldier micro-strategy](https://discord.com/channels/386965718572466197/401058232346345473/932583881784328242)
- [printf for allowing us to ~~steal~~ borrow their entire soldier micro-strategy](https://discord.com/channels/386965718572466197/401058232346345473/932583881784328242)
- Sam from Blue Dragon for teaching us the most important secret: hardcoding is beautiful.
- Beymax from Big Hero Six for being beautiful.

PS: voldemort_eight is the final bot. The naming scheme is weird. Deal with it.
Binary file modified src/voldemort_eight.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion src/voldemort_eight/ArchonController.java
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public static void runArchon(RobotController rc) throws GameActionException {
minerReport(rc);
}
}
} else if (rc.getMapWidth() > 20 && rc.getMapHeight() > 20 && readNumBuilders(rc) == 0 && (rc.getRobotCount() - rc.getArchonCount()) % (MIN_INITIAL_MINERS) == 0) {
} else if ((rc.getMapWidth() > 20 || rc.getMapHeight() > 20) && readNumBuilders(rc) == 0 && (rc.getRobotCount() - rc.getArchonCount()) % (MIN_INITIAL_MINERS) == 0) {
if (safeBuild(rc, RobotType.BUILDER, randomDir)) {
spawnedSuccessfully = true;
}
Expand Down

0 comments on commit 2b51baf

Please sign in to comment.