You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The distributed linux executables require glibc v2.14 or newer. That means if your distribution is older, it might not run, and you will need to recompile.
Mac users note that this game may be initiated in two ways also. First, by opening a terminal, navigating to the install-directory, and typing "seven_osx" or "cube_osx" on the command line. Second by navigating to the installation directory in Finder and clicking the "seven.app" or "cube.app" icons named "RufasSeven" or "RufasCube".
91
88
Note also that a 2-finger-swipe simulates the mouse wheel on a MacBook.
92
89
93
-
**Likewise for "seven"**
94
-
EG: seven.bat or seven_osx or seven_gnu.
95
-
96
-
The install-directory should contain a subdirectory named "data". It contains shaders and sound data.
The distributed linux executables require glibc v2.14 or newer. That means if your distribution is older, it might not run, and you will need to recompile.
99
98
100
99
101
-
## Running rufascube(3x3x3):
100
+
## Running Rufascube (3x3x3):
102
101
-------------------------------------------
103
102
104
103
The primary RGB "skin" is based on an RGB color scheme whereby position along X,Y,Z axis determines RGB-color content.
@@ -133,19 +132,24 @@ More options (as indicated by the help screen):
133
132
* (t)-key Toggles between the primary RGB colors and the currently selected alternate skin, without resetting puzzle;
134
133
* (c)-key Cycles thru 4 alternate skins, but this resets puzzle;
135
134
* 1-key, ... 5-key shuffles the cubelets...1:small-shuffle, 5:maximum-shuffle
136
-
* (s)-key or (=)-key single-steps toward a solution at any time;
135
+
* (s)-key single-steps toward a solution at any time;
136
+
* (=)-key single-steps toward a solution by undoing the shuffle;
137
137
* (i)-key or mousewheel zooms-In;
138
138
* (o)-key or mousewheel zooms-Out;
139
139
* (r)-key => reset to goal configuration (unscramble);
140
140
* (m)-key => mute-toggle of sliding sounds;
141
141
142
142
The keys (up),(dn),(lf),(rt),(f),(b) are functional but they are only helpful/meaningful when the Coordinate Axes are in "standard" orientation, i.e. x is rightward, y is upward, and z is outward.
143
143
144
+
### hint #1
144
145
Linux users note: the Windows executable files will likely run under WINE on linux.
145
146
146
-
### hint
147
+
### hint#2
147
148
You may find it easier to focus your attention on the 2D representation at the side of the screen.
148
149
150
+
### hint #3
151
+
After a shuffle, the #steps to unshuffle shows at bottom of screen. At this point you can press the (s)-key to see the #steps to the live solver solution. If unshuffling is quicker, then continue pressing the (=)-key to unshuffle; otherwise continue pressing the (s)-key to solve.
152
+
149
153
150
154
151
155
## Running seven(2x2x2), differences:
@@ -157,8 +161,10 @@ As indicated on screen, (h) will show a help screen. The (c) key will toggle be
157
161
158
162
More options (as indicated by the help screen):
159
163
160
-
* 1-key, ... 5-key shuffles the cubelets
161
-
* (s)-key or (=)-key solves the seven-cube ONLY if done immediately after a shuffle;
164
+
* 1-key, ... 5-key shuffles the cubelets;
165
+
* (c)-key Cycles thru 2 alternate skins;
166
+
* (s)-key single-steps toward a solution at any time;
167
+
* (=)-key single-steps toward a solution by undoing the shuffle;
162
168
* (i)-key or mousewheel zooms-In;
163
169
* (o)-key or mousewheel zooms-Out;
164
170
* (m)-key => mute-toggle of sliding sounds;
@@ -167,6 +173,7 @@ More options (as indicated by the help screen):
Open source Ada developers are welcome to help improve or extend this game.
172
179
@@ -176,27 +183,30 @@ Developer or not, send comments, suggestions or questions to:
176
183
177
184
178
185
186
+
187
+
179
188
## what is special about this project?
180
189
181
-
Uses the Ada programming language and fully modern OpenGL methods with textures, shaders, uniforms, sound and actual TTF-lettering. Achieving version 3.3 core profile contexts, it compiles and runs on Windows, GNU/Linux and Mac OS-X systems. This project serves as a testbed for learning the complexities of modern OpenGL, GLSL, FreeType fonts and the OpenGLAda binding.
190
+
Uses the Ada programming language and fully modern OpenGL methods with textures, shaders, uniforms, sound and actual TTF-lettering. Achieving version 3.3 core profile contexts, it compiles and runs on Windows, GNU/Linux and Mac OS-X systems. This project serves as a testbed for learning the complexities of modern OpenGL, GLSL, FreeType fonts.
182
191
183
-
Focusing on portability, transparency, and open source freedom, this project relies exclusively on F.O.S.S. tools: the OpenGLAda binding from Felix Krause, a FreeTypeAda binding by Felix Krause, a PNG reader by Stephen Sanguine, OpenAL-Audio with a custom binding, and a GNAT compiler.
192
+
Focusing on portability, transparency, and open source freedom, this project relies exclusively on F.O.S.S. tools: the GLFW binding is custom, a FreeTypeAda binding by Felix Krause, a PNG reader by Stephen Sanguine, OpenAL-Audio with a custom binding, and a GNAT compiler.
184
193
185
194
The linux-build is among very few modern OpenGL games where a single pre-built executable can run on multiple Linux distros without 3rd party add-ons!
186
195
187
-
Finally, the new live autosolver for "cube" is quite sophisticated. It allows invocation at any time and can be used to get a few steps closer, or all the way to a solution, no matter the current state. It shuts down whenever you feel more confident and begin making moves on your own. Solutions are quickly found but may not be minimal in highly shuffled puzzles.
196
+
Finally, the new "live" autosolver is quite sophisticated. It allows invocation at any time and can be used to get a few steps closer, or all the way to a solution, no matter the current state. It shuts down whenever you feel more confident and begin making moves on your own. Solutions are quickly found but may not always be minimal.
197
+
188
198
189
199
190
-
## Open Source libraries required for building:
191
200
-------------------------------------------
192
-
* systems: Windows, OS-X or GNU/Linux
193
-
*a recent gnat compiler for Windowsor Linux; gnu-ada for OS-X;
194
-
*the included directories contain required Ada interfaces;
195
-
*see example scripts;
201
+
## Using the build scripts
202
+
*systems: Windows, OSX or GNU/Linux
203
+
*Xcode g++ compiler, if using OSX;
204
+
*a recent gnat compiler;
196
205
197
206
198
207
## Build instructions for RufasCube or Seven:
199
208
209
+
200
210
In the following, the "appName" can be either "cube" or "seven".
201
211
202
212
Three [pre-compiled] binary executables are provided, one for gnu/linux, one for OS-X, and one for Windows. The linux binary, cube_gnu, is intended to run in the presence of the directory "libs", which contains some dynamically loaded libraries that can be, but need not be present on a target system:
@@ -228,8 +238,6 @@ sudo ln -s libGL.so.1 libGL.so (and enter the admin password)
228
238
229
239
whence the linker should now be able to find what it wants. But if there is more than one file libGL.so present on your system, make sure you use the best one; i.e. the one that uses your accelerated-graphic-driver.
230
240
231
-
232
-
233
241
------------------------
234
242
## License:
235
243
@@ -252,7 +260,9 @@ RufasCube is covered by the GNU GPL v3 as indicated in the sources:
252
260
You may read the full text of the GNU General Public License
253
261
at <http://www.gnu.org/licenses/>.
254
262
255
-
## Media Files for RufasCube,Seven:
263
+
264
+
265
+
## Media Files for RufasCube:
256
266
257
267
258
268
### General Note
@@ -261,73 +271,38 @@ The particular choice of sound files delivered are not essential to the function
261
271
### SoundFiles
262
272
Sounds are from freesound.org and is covered by the Creative Commons Attribution noncommercial license documented in the accompanying file creativeCommons.txt.
263
273
264
-
265
-
### Bindings & Utilities
266
-
267
-
Thanks to Dmitry Kazakov, Felix Krause, and Stephen Sanguine.
274
+
### ImageFiles (*.png)
275
+
For text-textures were created using gimp and are also covered by the GNU GPL v3 license.
268
276
269
277
270
278
271
279
## Acknowledgement:
272
280
In february of 2015 I discovered that RufasCube could be considered a software implementation of a Hungarian "Vadasz" 3x3x3 cube, or another similar puzzle called an iQube, whose goals are an all green or all red outer color. Peter's Black Hole and Magic Jack are still other incarnations.
273
281
274
-
I discovered on 10feb2015 that Seven seems to be a software implementation of a Hungarian "Vadasz" 2x2x2 cube.
275
-
276
-
277
282
For further iqube analysis see:
278
283
http://www.jaapsch.net/puzzles/blackhole.htm
279
284
285
+
I also discovered that the 2x2x2 cube seems to be a software implementation of a Hungarian "Vadasz" cube.
* Restored 8th [unseen] cubelet when seven is solved in RGB mode.
294
-
* Added Windows launchers "cube.bat"/"seven.bat".
295
+
**ver 4.x.x -- 2020**
296
+
* Improved help screen.
297
+
* Added m-key-toggle to mute move-sounds.
298
+
* Simpler, identical code for 3 platforms; simpler build process.
299
+
* Added 2x2x2 cube called "Seven", to delivery.
300
+
* Elliminated command line parameters. Allows in-game-switching between alternate skins and the primary RGB coloring. Thusly, all variants may be played as a Mac-Bundle on OSX.
295
301
296
-
**ver 4.2.2 -- 06jun20**
297
-
* Fixed sound errors during shuffle.
298
-
* Added "seven", a similar but smaller, easier cubic puzzle.
299
302
300
-
**ver 4.2.1 -- 18apr20**
301
-
* Assured that OpenGL v3.3 is sufficient to run this app.
302
-
* Added m-key-toggle to mute move-sounds.
303
+
**ver 2.5 -- 1dec15**
303
304
304
-
**ver 4.2.0 -- 17jan20**
305
-
* Improved font anti-aliasing thru corrected OpenGL code parameters.
306
-
* Added restart=unscramble option.
307
-
* Improved help screen.
308
-
* Elliminated command line parameters.
309
-
* Now allow in-game-switching between 4 alternate skins and the primary RGB coloring. Thusly, all variants may be played as a Mac-Bundle on OSX.
310
-
311
-
**ver 4.1.9 -- 14jan20**
312
-
* Added Restart option;
313
-
* Corrected logic error during solve.
314
-
* Enhanced portability of linux version game.
315
-
* Updated to GLFW v3.3.1 (released 1jan2020).
316
-
317
-
**ver 4.1.8 -- 04jan20**
318
-
* Improved coding in textman.adb to reduce loop contents, remove duplicates.
319
-
* Improved help screen, key assignments.
320
-
* Improved build scripts for MsWin.
321
-
* Moved code into ./src/, along with ./adabindings/.
322
-
323
-
**ver 4.1.7 -- 26nov19**
324
-
* Repaired a library problem with GNU/Linux build that limited portability.
325
-
* No problems with Mac/OSX or M.S. Windows builds.
0 commit comments