GithubHelp home page GithubHelp logo

valentinp72 / picross Goto Github PK

View Code? Open in Web Editor NEW
1.0 5.0 2.0 30.63 MB

▫️▪️▪️▪️▫️Création et aide à la résolution de Picross (Hanjie)

Home Page: https://picross.vlntn.pw/

License: MIT License

HTML 0.22% JavaScript 2.11% CSS 0.06% TeX 17.58% Ruby 80.03%
hanjie picross university-project ruby gtk

picross's Introduction

Ruþycross

Ruþycross logo :

Ruþycross logo

Application screen :

Ruþycross screen

Current project status

Build Status Maintainability Test Coverage

Installing & running

With sources

Required

  • ruby 2.2.2 minimum
  • GTK 3.22.0 minimum (not the Ruby gem, but the compiled toolkit)
  • Linux or macOS (not tested on Windows)

Installation:

git clone https://github.com/valentinp72/picross.git
# using SSH:
# git clone [email protected]:valentinp72/picross.git

cd picross
gem install bundle
bundle install --without development test

Running:

src/Application.rb

macOS installation

  • Download the last release here.
  • Open the disk image (.dmg)
  • Move the Rubycross application to the Application folder (anywhere else might not work, see below).
  • You can now play the game (available in the launchpad)

Known bug: the application crashes if there is a space character in the path to the application file. see here

Others

Documentation

Link to generated RDoc

rake doc

Unit tests and tests coverage

rake tests

picross's People

Contributors

anthony-lardy avatar brinonbat avatar emericmottier avatar gillespastouret avatar linearregression avatar mehdicohen avatar shirenator avatar valentinp72 avatar zephylac avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

picross's Issues

Rubycross.app macOS build

Si le chemin vers le dossier de l'application Rubycross.app contient un espace, l'application ne se lance plus.

Module User : utilisateur par défaut

Dossier d'un utilisateur par défaut, utilisé lors de la création d'un nouvel utilisateur (contient les paramètres par défaut, et les chapitres + cartes par défaut). Lors de la création d'un nouvel utilisateur, copie de ce dossier en un dossier de l'utilisateur.

Crash lors du déplacement de la souris sur la grille

Ça le fait pas tout le temps...

Il semblerait que ça vienne de GTK et gobject. Le bug survient aléatoirement.

Seule solution trouvée pour ne plus faire crash l'application lorsque le bug se produit : rescue l'error.

/Users/Valentin/.rvm/gems/ruby-2.3.0/gems/gobject-introspection-3.2.1/lib/gobject-introspection/loader.rb:576:in `invoke': Object isn't supported
         from /Users/Valentin/.rvm/gems/ruby-2.3.0/gems/gobject-introspection-3.2.1/lib/gobject-introspection/loader.rb:576:in `block in define_method'
         from /Users/Valentin/git/picross/src/UI/Frames/Game/CellButton.rb:103:in `block in setCSSClass'
         from /Users/Valentin/git/picross/src/UI/Frames/Game/CellButton.rb:102:in `each'
         from /Users/Valentin/git/picross/src/UI/Frames/Game/CellButton.rb:102:in `setCSSClass'
         from /Users/Valentin/git/picross/src/UI/Frames/Game/Drag.rb:148:in `block (2 levels) in updateFromTo'
         from /Users/Valentin/git/picross/src/UI/Frames/Game/Drag.rb:143:in `each'
         from /Users/Valentin/git/picross/src/UI/Frames/Game/Drag.rb:143:in `block in updateFromTo'
         from /Users/Valentin/git/picross/src/UI/Frames/Game/Drag.rb:142:in `each'
         from /Users/Valentin/git/picross/src/UI/Frames/Game/Drag.rb:142:in `updateFromTo'
         from /Users/Valentin/git/picross/src/UI/Frames/Game/Drag.rb:107:in `update'
         from /Users/Valentin/git/picross/src/UI/Frames/Game/CellButton.rb:82:in `block in setEvents'
         from /Users/Valentin/.rvm/gems/ruby-2.3.0/gems/gobject-introspection-3.2.1/lib/gobject-introspection/loader.rb:576:in `call'
         from /Users/Valentin/.rvm/gems/ruby-2.3.0/gems/gobject-introspection-3.2.1/lib/gobject-introspection/loader.rb:576:in `invoke'
         from /Users/Valentin/.rvm/gems/ruby-2.3.0/gems/gobject-introspection-3.2.1/lib/gobject-introspection/loader.rb:576:in `block in define_method'
         from UI/Application.rb:90:in `<main>'
UI/Application.rb: [BUG] Segmentation fault at 0x0000000000001e

Crash lors de la reprise du drag souris après drag clavier

@zephylac

Gtk-CRITICAL **: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed
        from /Users/Valentin/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/gobject-introspection-3.2.1/lib/gobject-introspec
tion/loader.rb:576:in `block in define_method'
        from /Users/Valentin/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/gtk3-3.2.1/lib/gtk3/box.rb:29:in `pack_start'
        from /Users/Valentin/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/glib2-3.2.1/lib/glib2/deprecatable.rb:63:in `bloc
k in define_deprecated_method_by_hash_args'
        from /Users/Valentin/git/picross/src/UI/Frames/Game/SideBarGameFrame.rb:164:in `disablePause'
        from /Users/Valentin/git/picross/src/UI/Frames/Game/SideBarGameFrame.rb:170:in `drawOnUnpause'
        from /Users/Valentin/git/picross/src/UI/Frames/Game/GameFrame.rb:123:in `draw'
        from /Users/Valentin/git/picross/src/UI/Frames/OptionFrame.rb:137:in `closeOrComeBackToHome'
        from /Users/Valentin/git/picross/src/UI/Frames/OptionFrame.rb:123:in `block in createButtons'
        from /Users/Valentin/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/gobject-introspection-3.2.1/lib/gobject-introspec
tion/loader.rb:576:in `call'
        from /Users/Valentin/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/gobject-introspection-3.2.1/lib/gobject-introspec
tion/loader.rb:576:in `invoke'
        from /Users/Valentin/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/gobject-introspection-3.2.1/lib/gobject-introspec
tion/loader.rb:576:in `block in define_method'
        from ./Application.rb:16:in `<main>'
/Users/Valentin/git/picross/src/Grid.rb:265:in `columnContaining': Cell █ was not found the the grid
         from /Users/Valentin/git/picross/src/Grid.rb:276:in `totalLengthVertical'
         from /Users/Valentin/git/picross/src/UI/Frames/Game/Drag.rb:162:in `totalLength'
         from /Users/Valentin/git/picross/src/UI/Frames/Game/Drag.rb:136:in `update'
         from /Users/Valentin/git/picross/src/UI/Frames/Game/CellButton.rb:246:in `enterNotify'
         from /Users/Valentin/git/picross/src/UI/Frames/Game/CellButton.rb:124:in `block in setEvents'
         from /Users/Valentin/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/gobject-introspection-3.2.1/lib/gobject-introspe
ction/loader.rb:576:in `call'
         from /Users/Valentin/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/gobject-introspection-3.2.1/lib/gobject-introspe
ction/loader.rb:576:in `invoke'
         from /Users/Valentin/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/gobject-introspection-3.2.1/lib/gobject-introspe
ction/loader.rb:576:in `block in define_method'
         from ./Application.rb:16:in `<main>'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.