Giter Club home page Giter Club logo

felicien-brochu / selflessheroes Goto Github PK

View Code? Open in Web Editor NEW
78.0 8.0 12.0 45.62 MB

Solve puzzles by designing an AI for a team of selfless heroes. Test your algorithm, optimize it, and emerge victorious from the dungeon!

Home Page: https://selflessheroes.fr

License: Other

JavaScript 66.94% Vue 31.56% CSS 0.54% Shell 0.05% SCSS 0.67% EJS 0.24%
game serious-game educational puzzle-game algorithmic vuejs phaser3 electron-builder electron

selflessheroes's People

Contributors

bohooslav avatar broutade avatar dependabot[bot] avatar felicien-brochu avatar kerusasu avatar loganthepage avatar los-romka avatar minarashad avatar negrostmthws avatar purplemyst avatar vescovaccio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

selflessheroes's Issues

[language] Support for comments

There could be support for comments in the code.

Maybe with # as is used in Python, Perl, Ruby, shell script and also supported in PHP.
Or maybe with // and/or /* comment */ as is used in JavaScript, TypeScript, Java, PHP, C#, etc.

[language] Colon before space

If you were to drop the space before the colon (if myitem == cauldron : into if myitem == cauldron:) the syntax would more similar to that of Python.

It would be pretty cool if the language used by Selfless Heroes was the same or very close to a very popular programming language (such as Python or JavaScript) used in the real world so the skills and knowledge would directly translate.

Provide a flatpak

One of the biggest advantages in contrast with snaps, is that flatpaks are sandboxed, and therefore this results in a more secure and private experience since it is harder for some kind of malware to attack the system, or for said application to retrieve user information without them knowing it. Another good point is that everything that's uploaded to Flathub (Flatpak's centralized repository) is compiled by the same developers, and cannot be done by some random person on the internet which could lead to outdated packages, piracy, and whatnot. Just like snaps, Flatpaks are compatible with every distribution that supports it, so you don't have to be uploading a million different releases, and also is becoming a more standardized option for non-based and Ubuntu based distributions alike, being adopted already by twenty five flavours of Linux, and some of them come with flatpak preinstalled out of the box (CentOS, ElementaryOS, EndlessOS, Fedora, Linux Mint, PureOS and ZorinOS).

More information:

https://flathub.org/
https://flatpak.org/
https://flatpak.org/setup/
https://docs.flatpak.org/en/latest/

Windows version crashes on 'Improve' while having 3 stars

Describe the bug
Having 3 stars for level #4 'Separate ways', the window goes all white when pressing 'Improve'.

To Reproduce
Steps to reproduce the behavior:
Context: I have at least 1 star for the first 7 levels.

  1. I then wanted to improve on level 'Separate ways'.
  2. I succeeded on secondary goal 'max. 6 lines' (thanks to the hint).
  3. Wait for 3x fireworks.
  4. Then I pressed 'Improve'
  5. The window goes all white; have to force close the window and restart.
  6. Re-entered the game
  7. Went straight back to level 4 and re-did the actions
  8. Same white screen
  9. Restart again
  10. Now try the same for levels 1 and 2
  11. Behavior is as expected.
  12. Now try level 4 again.
  13. No white screen, behavior as expected.

Expected behavior
I expected to be returned to the level 4, able to try out something different.

Screenshots
N/A

Platform

  • OS: Windows 10, 64bit
  • Application type: Windows installer
  • Version: v1.1.0 , English

Additional context
N/A

[language] The boolean operators

The && and || doesn't tell much to non-programmers, first-time programmers, to kids or people with a background in mathematics.

Python uses the and and or (and not) operators. Perhaps these operators would be more intuitive and easier to grasp.

PHP lets you use both the && and || and also the and and or operators.

[language] The endif statement

Many other languages does not have any endif statement. Python relies on indention for scoping.
Hence can do:

if w == switch:
    step(w)

It would be pretty cool if the language used by Selfless Heroes was the same or very close to a very popular programming language (such as Python or JavaScript) used in the real world so the skills and knowledge would directly translate.

Remember the execution speed setting

I am not sure if this is by design and there might be a rationale for why the execution speed should be reset.

But you might want to consider whether the game should remember the execution speed setting, because right now it does get reset to the default speed every time you finish a level and proceed to the next.

[language] The loop statement

The loop is actually the loathed goto statement with another name. Perhaps some other language construct such as the while loop can be used instead.

The goto statement is much hated and not used much in the real world in modern languages.

Add shortcut keys

Add F5 to run.
Add Shift+F5 to stop running.
Add Ctrl+Shift+F5 to restart.
Add F10 to step over.

Add a hotkey to toggle between the code designer and the code editor.

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.