Skip to content

Commit

Permalink
Moved all level folders under solutions
Browse files Browse the repository at this point in the history
  • Loading branch information
atesgoral committed Nov 19, 2015
1 parent bea30a1 commit 4cdf86a
Show file tree
Hide file tree
Showing 152 changed files with 9 additions and 5 deletions.
8 changes: 6 additions & 2 deletions README.md
Expand Up @@ -10,11 +10,15 @@ This repo contains working solutions, in hopes of exchanging ideas to collaborat

The file naming convention used is:

Inside a folder called `<level>-<level name>-<size par>.<speed par>`, `[size].[speed].asm`
Under the `solutions` folder, inside a subfolder called `<level>-<level name>-<size par>.<speed par>`, `<size>.<speed>[.<type>]-<author>.asm`

Where `size` and `speed` are the number of commands and steps of the solution, which is deemed by the game as size and speed optimized if they are equal to or less than the par numbers in its folder's name.

For example, `07-Zero-Exterminator-4.23/4.23.asm` means the solution is both size and speed optimized.
The optional `type` field is a descriptor for the type of solution (e.g. the algorithm used, whether it's an exploit etc.)

`author` is the GitHub username of the author of the solution.

For example, `07-Zero-Exterminator-4.23/4.23-atesgoral.asm` means the solution is both size and speed optimized and is by user atesgoral.

## Contributing

Expand Down
2 changes: 1 addition & 1 deletion gulpfile.js
Expand Up @@ -203,7 +203,7 @@ gulp.task('deploy-clean', function () {
});

gulp.task('deploy-data-programs', [ 'deploy-clean' ], function () {
return gulp.src('*/*.asm')
return gulp.src('solutions/*/*.asm')
.pipe(inspect())
.pipe(benchmark())
.pipe(report())
Expand Down
4 changes: 2 additions & 2 deletions index.html
Expand Up @@ -100,8 +100,8 @@ <h2>Top Scores</h2>
}
%>
</td>
<td><a href="https://github.com/atesgoral/hrm-solutions/blob/master/<%= level.minSizeProgram.path %>"><%= level.minSizeProgram.size + '/' + level.challenge.size %></a> by <a href="https://github.com/<%= level.minSizeProgram.author %>">@<%= level.minSizeProgram.author %></a></td>
<td><a href="https://github.com/atesgoral/hrm-solutions/blob/master/<%= level.minStepsProgram.path %>"><%= level.minStepsProgram.steps + '/' + level.challenge.speed %></a> by <a href="<%= 'https://github.com/' + level.minStepsProgram.author %>"><%= '@' + level.minStepsProgram.author %></a></td>
<td><a href="https://github.com/atesgoral/hrm-solutions/blob/master/solutions/<%= level.minSizeProgram.path %>"><%= level.minSizeProgram.size + '/' + level.challenge.size %></a> by <a href="https://github.com/<%= level.minSizeProgram.author %>">@<%= level.minSizeProgram.author %></a></td>
<td><a href="https://github.com/atesgoral/hrm-solutions/blob/master/solutions/<%= level.minStepsProgram.path %>"><%= level.minStepsProgram.steps + '/' + level.challenge.speed %></a> by <a href="<%= 'https://github.com/' + level.minStepsProgram.author %>"><%= '@' + level.minStepsProgram.author %></a></td>
</tr>
<%
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 4cdf86a

Please sign in to comment.