[Original Game] EvalMaster


Linux-SWAT

Forum Addict!
Joined
Feb 13, 2010
Messages
9,188
EvalMaster is a bash game that i'm writing while waiting for my endless compilations, rootfs generation or compression.


Welcome to EvalMaster 1.0 !
A GPLV3 bash program by Linux-SWAT !

Story:
Your computer has a failure !!!
Now it's HIM who asks YOU to compute !!!

----------------------------------------------
Type exit, quit or bye to stop this program.
----------------------------------------------

----------------------------------------------
Please push [ENTER] to help your confused CPU.
Gg, hf gl !!!
----------------------------------------------



Code:
----------------------------------------------
Current difficulty level:
----------------------------------------------
addition=1
substraction=1
multiplication=1
division=1 

----------------------------------------------
Choose your computation:
1 addition
2 substraction
3 multiplication
4 division
5 mixed
----------------------------------------------

It's not packaged yet, but you can simply uncompress it and launch with:

sh evalmaster.sh

Division, mixed mode and highscores are not yet implemented.

cfg.zip
 

Attachments

  • cfg.zip
    5.7 KB · Views: 335
Cool. Reminds me of that mod that lets you play tetris while checking your filesysrem ;)
 
Here's a V1 release, all functions are ok, mixed mode is ok, highscores are ok:

cfg.zip
 

Attachments

  • cfg.zip
    1.7 KB · Views: 356
=======================================================================================

PND             : /media/PANDORA32GB-1-2/pandora/menu/evalmaster-1.0-1.pnd

PND_FSTYPE      : ISO

APPDATADIR      : /media/PANDORA32GB-1-2/pandora/appdata/evalmaster

APPDD_FSTYPE    : vfat

PND_CPUSPEED    : <unset>

EXENAME         : launcher.sh

ARGUMENTS       : <unset>

=======================================================================================

[ START ]--- Mount the PND ----------

Mounting : mount -o ro "/dev/loop1" "/mnt/utmp/evalmaster"

Mounting the Union FS : mount -t aufs -o exec,noplink,dirs="/media/PANDORA32GB-1-2/pandora/appdata/evalmaster=rw+nolwh":"/mnt/pnd/evalmaster=rr" none "/mnt/utmp/evalmaster"

[sUCCESS]--- Mount the PND ----------

[ START ]--- Starting the application (launcher.sh ) ----------

 

Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine",

aborting...

/usr/pandora/scripts/pnd_run.sh: line 519: 11189 Aborted                 "./$EXENAME" $ARGUMENTS

[ FAILED]--- Starting the application (launcher.sh ) ----------

[ START ]--- Restoring the frame buffer status ----------

[sUCCESS]--- Restoring the frame buffer status ----------

[ START ]--- uMount the PND ----------

[ START ]--- Waiting the Union to be available ----------

[sUCCESS]--- Waiting the Union to be available ----------

auplink:plink.c:223: AUFS_CTL_PLINK_MAINT: Inappropriate ioctl for device

rmdir: failed to remove `/mnt/utmp/evalmaster': Device or resource busy

[ START ]--- Waiting the PND mount dir to be free ----------

[sUCCESS]--- Waiting the PND mount dir to be free ----------

cleanup done

[sUCCESS]--- uMount the PND ----------

=======================================================================================

Return code is : 2

 

Of course, sorry it had ben that long since i opened a pndrun i couldnt remember where they where.
 
Last edited by a moderator:
Can you make it do some extra things too?

 - teach foreign language vocabulary

 - train typing pandora symbols and common code symbols like -> #! () etc

 - Q&A, like exam practise questions

You could be on to a winner there!
 
Well, it's an almost finished, non-ambitious project ^^.

I'll see what i can include next.
 
I have a problem while uploading the pnd to the repo:


WARNING: there seems to be an error with the data from one of your <application> blocks.
The problem is that you don't have main category that confirms to freedesktop standards
We need you to fix your PXML and then re-upload.
Thanks!

NON-STANDARD:
Games from <application> block 1
My PXML:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<PXML xmlns="http://openpandora.org/namespaces/PXML" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="PXML_schema.xsd">

<package id="evalmaster-1.0">
 <version major="1" minor="0" release="1" build="1"/>
</package>

<application id="evalmaster-1.0" appdata="evalmaster">

 <title lang="en_US">EvalMaster</title>

 <description lang="en_US">A Compute Game.</description>
 <exec command="launcher.sh"/>
 <icon src="evalmaster.png"/>
 <info name="EvalMaster README" type="text/html" src="README.txt"/>

 <previewpics>
  <pic src="preview1.png"/>
  <pic src="preview2.png"/>
 </previewpics>

 <author name="Linux-SWAT" website="http://openpandora.free.fr/"/>
 <version major="1" minor="0" release="1" build="1"/>
 <osversion major="Zaxxon" minor="1.52" release="1" build="1"/>

 <categories>
  <category name="Games">
  <subcategory name="LogicGame"/>
  </category>
 </categories>
 
 <licenses>
  <license name="GPL V3" url="https://www.gnu.org/licenses/gpl.html"/>
 </licenses>

</application>
</PXML>
 
I know the feeling ... We can write 100KB of complex source code and get tripped up on a single character!!
 
Thought about it, but it's more for practice than challenge.

It's a pretty simple app i wrote aside my main entry so i don't put much effort in it ^^.
 
Ok, I understand now. So it is training. And as a contestant you feel that inner proud as your reward.
 
Back
Top