Skip to content

Commit 20cf893

Browse files
authored
Merge pull request #81 from battlecode/client-nathan-tweaks-3
Client nathan tweaks 3
2 parents fd94c4f + 2c72b62 commit 20cf893

File tree

321 files changed

+11232
-6571
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

321 files changed

+11232
-6571
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ env:
1111
# RELEASE_ARTIFACT_ID is the name of the Maven artifact produced by the buildsystem.
1212
# Important: you must make sure no ID is a prefix of a different ID. Otherwise, you could
1313
# inadvertently cause unintended episodes to become public.
14-
RELEASE_ARTIFACT_ID: battlecode22
14+
RELEASE_ARTIFACT_ID: battlecode23
1515

1616
# IS_PUBLIC is whether to release deployments publicly. Set to exactly the text "YES" to do so.
1717
IS_PUBLIC: NO

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Battlecode 2022
1+
# Battlecode 2023
22

33
🚩
44

build.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ publishing {
178178
publications {
179179
server(MavenPublication) {
180180
groupId 'org.battlecode'
181-
artifactId 'battlecode22'
181+
artifactId 'battlecode23'
182182
version project.findProperty('release_version') ?: 'NONSENSE'
183183

184184
artifact release_main
@@ -190,39 +190,39 @@ publishing {
190190

191191
clientWin(MavenPublication) {
192192
groupId 'org.battlecode'
193-
artifactId 'battlecode22-client-win'
193+
artifactId 'battlecode23-client-win'
194194
version project.findProperty('release_version') ?: 'NONSENSE'
195195

196196
artifact releaseClientWin
197197
}
198198

199199
clientMac(MavenPublication) {
200200
groupId 'org.battlecode'
201-
artifactId 'battlecode22-client-mac'
201+
artifactId 'battlecode23-client-mac'
202202
version project.findProperty('release_version') ?: 'NONSENSE'
203203

204204
artifact releaseClientMac
205205
}
206206

207207
clientLinux(MavenPublication) {
208208
groupId 'org.battlecode'
209-
artifactId 'battlecode22-client-linux'
209+
artifactId 'battlecode23-client-linux'
210210
version project.findProperty('release_version') ?: 'NONSENSE'
211211

212212
artifact releaseClientLinux
213213
}
214214

215215
clientWin32(MavenPublication) {
216216
groupId 'org.battlecode'
217-
artifactId 'battlecode22-client-win-32'
217+
artifactId 'battlecode23-client-win-32'
218218
version project.findProperty('release_version') ?: 'NONSENSE'
219219

220220
artifact releaseClientWin32
221221
}
222222

223223
clientLinux32(MavenPublication) {
224224
groupId 'org.battlecode'
225-
artifactId 'battlecode22-client-linux-32'
225+
artifactId 'battlecode23-client-linux-32'
226226
version project.findProperty('release_version') ?: 'NONSENSE'
227227

228228
artifact releaseClientLinux32

client/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ This NPM module does not have any dependencies or meaningful output, but it is f
1717
* `npm run build`, `npm run build-playback`
1818
* `npm run electron`: Run the client in electron. You might want to run this most of the time.
1919
* `npm run watch`: Watch for the changes of `visualizer`. Note that it *does not watch* `playback`.
20-
* `npm run prod-electron`, `npm run prod-electron-no-sign`, `npm run prod-test`
20+
* `npm run prod-electron`, `npm run prod-test`
2121
* `npm run clean`: Cleans `dist/`. (output folder of `prod`)

client/package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "battlecode-client",
3-
"version": "2022.0.0",
3+
"version": "2023.0.0",
44
"description": "Client wrapper of visualizer and playback",
55
"main": "visualizer/electron-main.js",
66
"scripts": {
@@ -12,18 +12,17 @@
1212
"electron": "npm run build-playback && (cd visualizer && npm run electron)",
1313
"watch": "npm run build-playback && (cd visualizer && npm run watch)",
1414
"prod-electron": "npm run build-playback && (cd visualizer && npm run prod-electron)",
15-
"prod-electron-no-sign": "npm run build-playback && (cd visualizer && npm run prod-electron-no-sign)",
1615
"prod-test": "npm run build-playback && (cd visualizer && npm run prod-test)"
1716
},
1817
"repository": {
1918
"type": "git",
20-
"url": "git+https://github.com/battlecode/battlecode21.git"
19+
"url": "git+https://github.com/battlecode/battlecode23.git"
2120
},
2221
"author": "Teh Devs",
2322
"license": "GPL-3.0",
2423
"bugs": {
25-
"url": "https://github.com/battlecode/battlecode21/issues"
24+
"url": "https://github.com/battlecode/battlecode23/issues"
2625
},
27-
"homepage": "https://github.com/battlecode/battlecode21#readme",
26+
"homepage": "https://github.com/battlecode/battlecode23#readme",
2827
"dependencies": {}
2928
}

client/playback/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Remember to run `npm install` without any serious errors in this directory.
2424

2525
* `npm run check`: Compile typescript files (`src/*.ts`) without creating any output files, and pipe output to less. Use this command when you need to update playback for new schema.
2626
* `npm run build`: Compile typescript files (`src/*.ts`) into javascript & typescript declaration files. (`out/*.js`, `out/*.d.ts`)
27-
* `npm run gen`: Generate dummy `.bc22` files. It runs typescript without transcripting into javascript, by using `ts-node`. (`../examples`)
27+
* `npm run gen`: Generate dummy `.bc23` files. It runs typescript without transcripting into javascript, by using `ts-node`. (`../examples`)
2828
* `npm run clean`: Simply remove itself and everything in `out` directory.
2929
* `npm run watch`: Watch for chanages on `src/*.ts` files, and build again whenever change is detected.
3030

@@ -34,11 +34,11 @@ The other scripts are under maintenance.
3434
### Structure
3535
* `src/*.ts` : main source files. `index.ts` is the starting point
3636
* `src/tsconfig.json` : TypeScript compile option configuration file
37-
* `src/gen/create.ts` : code for generating dummy `.bc22` files.
37+
* `src/gen/create.ts` : code for generating dummy `.bc23` files.
3838
* `src/legacy/**/*.ts` : Legacy codes, including test for soa.ts and simulating
3939
* `out/*.js` : compiled javascript output of typescript files
4040
* `out/*.d.ts` : compiled typescript declaration files of typescript files
41-
* `../examples` : generated `.bc22` files from `src/gen/*`
41+
* `../examples` : generated `.bc23` files from `src/gen/*`
4242

4343

4444
### Note
@@ -68,7 +68,7 @@ const bc = require('battlecode-playback');
6868
let aliveRobots = {};
6969
let lifetimes = [];
7070

71-
bc.stream('match.bc22').on('spawn', spawnEvent => {
71+
bc.stream('match.bc23').on('spawn', spawnEvent => {
7272
aliveRobots[spawnEvent.bodyId] = {
7373
born: spawnEvent.round
7474
};

0 commit comments

Comments
 (0)