[Original Game] EvalMaster

Discussion in 'DragonBox Coding Compo 2012/2013' started by Linux-SWAT, Dec 21, 2012.

  1. Linux-SWAT

    Linux-SWAT Hardcore Member

    Joined:
    Feb 13, 2010
    Messages:
    8,070
    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
     

    Attached Files:

    • cfg.zip
      File size:
      5.7 KB
      Views:
      104
    Tags:
  2. Askarus

    Askarus Hardcore Member

    Joined:
    Sep 28, 2011
    Messages:
    4,214
    Location:
    Germany
    Nice.
     
  3. mcobit

    mcobit Advanced Member

    Joined:
    Jul 28, 2008
    Messages:
    6,755
    Cool. Reminds me of that mod that lets you play tetris while checking your filesysrem ;)
     
  4. Linux-SWAT

    Linux-SWAT Hardcore Member

    Joined:
    Feb 13, 2010
    Messages:
    8,070
    Here's a V1 release, all functions are ok, mixed mode is ok, highscores are ok:

    cfg.zip
     

    Attached Files:

    • cfg.zip
      File size:
      1.7 KB
      Views:
      98
  5. Linux-SWAT

    Linux-SWAT Hardcore Member

    Joined:
    Feb 13, 2010
    Messages:
    8,070

    Attached Files:

  6. Linux-SWAT

    Linux-SWAT Hardcore Member

    Joined:
    Feb 13, 2010
    Messages:
    8,070
    One download !

    Champagne !

    :D .
     
  7. Phelsumania

    Phelsumania Member

    Joined:
    Jun 23, 2011
    Messages:
    482
    Location:
    Andover, UK
    prob being a doughnut here, i downloaded the pnd but couldnt get it to start
     
  8. Linux-SWAT

    Linux-SWAT Hardcore Member

    Joined:
    Feb 13, 2010
    Messages:
    8,070
    Can you send me the /tmp/pndrun plz ?
     
  9. Phelsumania

    Phelsumania Member

    Joined:
    Jun 23, 2011
    Messages:
    482
    Location:
    Andover, UK
    =======================================================================================

    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: Jan 15, 2013
  10. Linux-SWAT

    Linux-SWAT Hardcore Member

    Joined:
    Feb 13, 2010
    Messages:
    8,070
    Checked it, all is ok here.

    Maybe redownload ?
     
  11. sswam

    sswam Advanced Member

    Joined:
    Dec 16, 2009
    Messages:
    1,392
    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!
     
  12. Linux-SWAT

    Linux-SWAT Hardcore Member

    Joined:
    Feb 13, 2010
    Messages:
    8,070
    Well, it's an almost finished, non-ambitious project ^^.

    I'll see what i can include next.
     
  13. Linux-SWAT

    Linux-SWAT Hardcore Member

    Joined:
    Feb 13, 2010
    Messages:
    8,070
    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>
     
  14. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    8,180
    Location:
    France, near Lyon
    Last edited by a moderator: Jan 16, 2013
    sswam likes this.
  15. Linux-SWAT

    Linux-SWAT Hardcore Member

    Joined:
    Feb 13, 2010
    Messages:
    8,070
    Rofl thanks !
     
  16. sswam

    sswam Advanced Member

    Joined:
    Dec 16, 2009
    Messages:
    1,392
    I know the feeling ... We can write 100KB of complex source code and get tripped up on a single character!!
     
  17. jorlinn

    jorlinn Member

    Joined:
    May 9, 2011
    Messages:
    107
    Location:
    Netherlands
    And while you are at it, it's Compute>r< Game ;) Just kidding there^
     
    Last edited by a moderator: Jan 27, 2013
  18. porg

    porg Active Member

    Joined:
    Feb 26, 2010
    Messages:
    771
    Location:
    Vienna, Austria
    Without a time limit, this game is no challenge.
     
  19. Linux-SWAT

    Linux-SWAT Hardcore Member

    Joined:
    Feb 13, 2010
    Messages:
    8,070
    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 ^^.
     
  20. porg

    porg Active Member

    Joined:
    Feb 26, 2010
    Messages:
    771
    Location:
    Vienna, Austria
    Ok, I understand now. So it is training. And as a contestant you feel that inner proud as your reward.
     

Share This Page

Loading...