Skip to content

Commit 79225b6

Browse files
committed
chore: rename to "Algorithm Simulator"
1 parent 7b57d64 commit 79225b6

File tree

8 files changed

+30
-65
lines changed

8 files changed

+30
-65
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
build/
2+
13
# Godot-specific ignores
24
.import/
35
export.cfg

CREDITS.md

Lines changed: 1 addition & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
This project is made possible by open source projects; their required copyrights are listed below.
1+
This project is made possible by open source projects; their required license texts are listed below.
22

33
# [Godot](https://godotengine.org)
44
Copyright (c) 2007-2020 Juan Linietsky, Ariel Manzur. Copyright (c) 2014-2020 Godot Engine contributors.
@@ -12,50 +12,3 @@ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR I
1212
# [FreeType](https://www.freetype.org)
1313
Portions of this software are copyright © 2019 The FreeType
1414
Project (www.freetype.org). All rights reserved.
15-
16-
# [Hack](https://sourcefoundry.org/hack)
17-
The work in the Hack project is Copyright 2018 Source Foundry Authors and licensed under the MIT License
18-
19-
The work in the DejaVu project was committed to the public domain.
20-
21-
Bitstream Vera Sans Mono Copyright 2003 Bitstream Inc. and licensed under the Bitstream Vera License with Reserved Font Names "Bitstream" and "Vera"
22-
23-
### MIT License
24-
25-
Copyright (c) 2018 Source Foundry Authors
26-
27-
Permission is hereby granted, free of charge, to any person obtaining a copy
28-
of this software and associated documentation files (the "Software"), to deal
29-
in the Software without restriction, including without limitation the rights
30-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
31-
copies of the Software, and to permit persons to whom the Software is
32-
furnished to do so, subject to the following conditions:
33-
34-
The above copyright notice and this permission notice shall be included in all
35-
copies or substantial portions of the Software.
36-
37-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
38-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
39-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
40-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
41-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
42-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
43-
SOFTWARE.
44-
45-
### BITSTREAM VERA LICENSE
46-
47-
Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved. Bitstream Vera is a trademark of Bitstream, Inc.
48-
49-
Permission is hereby granted, free of charge, to any person obtaining a copy of the fonts accompanying this license ("Fonts") and associated documentation files (the "Font Software"), to reproduce and distribute the Font Software, including without limitation the rights to use, copy, merge, publish, distribute, and/or sell copies of the Font Software, and to permit persons to whom the Font Software is furnished to do so, subject to the following conditions:
50-
51-
The above copyright and trademark notices and this permission notice shall be included in all copies of one or more of the Font Software typefaces.
52-
53-
The Font Software may be modified, altered, or added to, and in particular the designs of glyphs or characters in the Fonts may be modified and additional glyphs or characters may be added to the Fonts, only if the fonts are renamed to names not containing either the words "Bitstream" or the word "Vera".
54-
55-
This License becomes null and void to the extent applicable to Fonts or Font Software that has been modified and is distributed under the "Bitstream Vera" names.
56-
57-
The Font Software may be sold as part of a larger software package but no copy of one or more of the Font Software typefaces may be sold by itself.
58-
59-
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL BITSTREAM OR THE GNOME FOUNDATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.
60-
61-
Except as contained in this notice, the names of Gnome, the Gnome Foundation, and Bitstream Inc., shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Font Software without prior written authorization from the Gnome Foundation or Bitstream Inc., respectively. For further information, contact: fonts at gnome dot org.

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
1-
<br />
21
<p align="center">
32
<img src="assets/icon.png" alt="Logo" width="64" height="64">
43

5-
<h1 align="center">Human Computer Simulator</h1>
4+
<h1 align="center">Algorithm Simulator</h1>
65

76
<p align="center">
87
Become your favorite sorting algorithm!
98
</p>
109
</p>
1110

1211
![Level select screen](assets/levels.png)
13-
Have you ever wondered what it feels like to be a sorting algorithm‽ Now you can find out! In *Human Computer Simulator*, you control an algorithm operating on an array, trying to sort as fast as possible. With 10 different levels, a cool visualization, and optional sound effects, you can fulfill your sorting dreams...
12+
It seems like there's a simulator for everything, whether it be flights, goats, or yandere. But have you ever wondered what it feels like to be a sorting algorithm‽ No? Well, now you can find out anyways! In *Algorithm Simulator*, inspired by Timo Bingmann's widely viewed [15 Sorting Algorithms in 6 Minutes](https://www.youtube.com/watch?v=kPRA0W1kECg), you control an algorithm operating on an array, trying to sort as fast as possible. With ten different levels, a cool visualization, and sound effects, you can fulfill your sorting dreams...
1413

15-
A demo (large download warning: ~5 MB gzipped) is available on this repository's [Github Pages](https://danielzting.github.io/human-computer-simulator). It requires a desktop browser with support for WebAssembly and WebGL.
14+
A demo (large download warning: ~5 MB gzipped) is available on this repository's [Github Pages](https://danielzting.github.io/algorithm-simulator). It requires a desktop browser with support for WebAssembly and WebGL. Use it to make a lecture a little more interesting, study for your sorting algorithms certification, or annoy the neighbors with the sound...
1615

1716
## Anti-pitch
1817

19-
This is beta software, so there will inevitably be things that are confusing, broken, or straight up wrong. See the [issues](https://github.com/DanielZTing/human-computer-simulator/issues) for a list of caveats and don't hesitate to open another one if you find something new.
18+
This is beta software, so there will inevitably be things that are confusing, broken, or straight up wrong. See the [issues](https://github.com/DanielZTing/algorithm-simulator/issues) for a list of caveats and don't hesitate to open another one if you find something new.
2019

2120
## Contributing
2221

23-
I welcome any bug reports or feature requests. Pull requests are appreciated as well, though I apologize for my code in advance. If you like this so much that you want to [throw money at me](https://venmo.com/DanielZTing), I will add any 80x24 ASCII text block of your choosing to the README and credits.
22+
I welcome any bug reports or feature requests. Pull requests are appreciated as well, though I apologize for my code in advance. If you like this so much that you want to [throw money at me](https://venmo.com/DanielZTing) for some reason, I will add any 80x24 ASCII text block of your choosing to the credits.

assets/levels.png

-4.52 KB
Loading

levels/cycle_sort.gd

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ Cycle sort looks at the first element and finds its correct final
77
position by counting the number of elements smaller than it. Then it
88
saves the element at that index, writes the first element there, and
99
repeats the process with the saved element. For the sake of
10-
demonstration, in the actual level, swaps are used instead.
10+
demonstration, the actual level uses swaps instead and skips over
11+
elements already in place.
1112
1213
This results in a quadratic runtime but gives it the special property
13-
of being optimal in the number of writes to the array. This makes cycle
14-
sort useful in situations where writes are very expensive.
14+
of being optimal in the number of writes to the array, making it useful
15+
when writes are expensive.
1516
"""
1617
const CONTROLS = """
1718
If the highlighted element is less than the element below the blue

project.godot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ _global_script_class_icons={
110110

111111
[application]
112112

113-
config/name="Human Computer Simulator"
113+
config/name="Algorithm Simulator"
114114
run/main_scene="res://scenes/menu.tscn"
115115
boot_splash/image="res://assets/splash.png"
116116
config/icon="res://assets/icon.png"

scenes/menu.tscn

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ script = ExtResource( 1 )
2828
[node name="Title" type="Label" parent="MainMenu"]
2929
margin_right = 1199.0
3030
margin_bottom = 19.0
31-
text = "Human Computer Simulator"
31+
text = "Algorithm Simulator"
3232
uppercase = true
3333

3434
[node name="Display" type="MarginContainer" parent="MainMenu"]
@@ -44,9 +44,9 @@ __meta__ = {
4444
[node name="InstructionsContainer" type="MarginContainer" parent="MainMenu/Display"]
4545
visible = false
4646
margin_left = 484.0
47-
margin_top = 164.0
47+
margin_top = 146.0
4848
margin_right = 714.0
49-
margin_bottom = 434.0
49+
margin_bottom = 451.0
5050
size_flags_horizontal = 4
5151
size_flags_vertical = 4
5252
script = ExtResource( 3 )
@@ -55,12 +55,18 @@ script = ExtResource( 3 )
5555
margin_left = 20.0
5656
margin_top = 20.0
5757
margin_right = 210.0
58-
margin_bottom = 250.0
58+
margin_bottom = 285.0
5959
custom_constants/separation = 16
6060

61+
[node name="GitHub" type="Button" parent="MainMenu/Display/InstructionsContainer/Instructions"]
62+
margin_right = 190.0
63+
margin_bottom = 19.0
64+
text = "Fork me on GitHub!"
65+
6166
[node name="Controls" type="HBoxContainer" parent="MainMenu/Display/InstructionsContainer/Instructions"]
67+
margin_top = 35.0
6268
margin_right = 190.0
63-
margin_bottom = 195.0
69+
margin_bottom = 230.0
6470
custom_constants/separation = 20
6571

6672
[node name="Keys" type="Label" parent="MainMenu/Display/InstructionsContainer/Instructions/Controls"]
@@ -93,9 +99,9 @@ confirm"
9399
align = 2
94100

95101
[node name="Button" type="Button" parent="MainMenu/Display/InstructionsContainer/Instructions"]
96-
margin_top = 211.0
102+
margin_top = 246.0
97103
margin_right = 190.0
98-
margin_bottom = 230.0
104+
margin_bottom = 265.0
99105
text = "OK"
100106

101107
[node name="Spacing" type="Control" parent="MainMenu"]
@@ -133,6 +139,7 @@ text = "CREDITS"
133139
[node name="Timer" type="Timer" parent="."]
134140
wait_time = 0.25
135141
autostart = true
142+
[connection signal="pressed" from="MainMenu/Display/InstructionsContainer/Instructions/GitHub" to="MainMenu" method="_on_GitHub_pressed"]
136143
[connection signal="pressed" from="MainMenu/Display/InstructionsContainer/Instructions/Button" to="MainMenu" method="_on_Button_pressed"]
137144
[connection signal="pressed" from="MainMenu/Buttons/Help" to="MainMenu" method="_on_Help_pressed"]
138145
[connection signal="pressed" from="MainMenu/Buttons/Start" to="MainMenu" method="_on_Start_pressed"]

scripts/menu.gd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,6 @@ func _on_Button_pressed():
3131
$Display/InstructionsContainer.hide()
3232
$Display/HBoxContainer.show()
3333
$Buttons/Start.grab_focus()
34+
35+
func _on_GitHub_pressed():
36+
OS.shell_open("https://github.com/DanielZTing/algorithm-simulator")

0 commit comments

Comments
 (0)