Giter Site home page Giter Site logo

smack42 / driftingdroids Goto Github PK

View Code? Open in Web Editor NEW
40.0 9.0 12.0 26.06 MB

DriftingDroids - yet another Ricochet Robots solver program

Home Page: https://github.com/smack42/DriftingDroids/wiki

License: GNU General Public License v3.0

Shell 0.32% Java 99.68%
java game ricochet-robots solver search-algorithm iddfs-algorithm swing-gui

driftingdroids's People

Contributors

rubo77 avatar smack42 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

driftingdroids's Issues

Did not find all solutions

Hi, and first of all thanks for your great software!

I think I've stumbled on a small bug in the solver, as it did not find all the solutions:
drifting_bug

Another solution in 7 moves is : East - South - West - North - East - South - West

solution does not work, gets stuck

This puzzle is not solved correctly in roboyard 7.1 and 8.1 (8.1 uses your latest solver now)

Screenshot_20190608-091329_Roboyard

It says 4 moves, but gets stuck like this:

Screenshot_20190608-091335_Roboyard

add application icon

The application needs an icon that is shown in the task bar / task switcher of the user's desktop environment. The icon should be in PNG format and have a size of 16x16 pixels. Larger versions (32x32, 48x48, 64x64) would be nice to have, too.

If you would like to contribute an icon, then please reply to this bug or send me an email to smack42-at-gmail-com. Thank you!

doesnt find the best solution

This puzzle is solved best in 7 moves, but the solver only finds a solution with 9

Screenshot_20191114-224555

I guess it ignores a solution, where the red uses the staight line to the goal

Fail to find all distinct solutions with different final board positions

Game ID: 0361+52+2A21631CAF+D6

The program did not find the following solution, which will result in a different final position (yellow and silver swapped)

1: ↑ red North
2: ← red West
3: ← silver West
4: → blue East
5: ↓ blue South
6: ← blue West
7: ↑ silver North
8: ← silver West
9: ← yellow West
10: ↓ yellow South
11: ↓ blue South
12: ← blue West
13: ↑ blue North

1 mover bug

I would like to say that I really like DriftingDroids. Of all the Ricochet Robot solvers I used, it is by far the best for practice.

I would like to report a bug for version 1.3.3. For the game, 679C+52+2E21860FBF+C6 , the best solution is 1 move but your program calculated 4 moves. This bug seems to happen to most games where solution is 1 move. The same bug also happens to games like, 679C+52+2E21860FA6+C6 .

Roboyard - DriftingDroids for Android

Would it be possible to port this to Android?

If so, how about the licencing?

If it is all free, I would like to create a free app for download out of your code, if you agree?

delete wall in editor mode not possible

I try to build a map with goals on every tile, but that is quite hard with the mouse without hitting a wall accidentally ;)

I cannot find a way to delete a wall, that I accidentally set somewhere.

Is it only possible to place more walls, but not remove them again?

maybe add at least an "Undo" Button in the editor.

Solver finds impossible solution

On this puzzle roboyard thinks it finds a solution with 12:
ry

but when you click on the solve button, it gets stuck after two moves

signal-2019-07-03-110045

Configurable defaults

I try to find out how to set the defaults:

  • Number of droids
  • New boards saved among the default boards

It'll also be a nice thing to be able to save a particular custom board and have it reusable, perhaps name it and be able to use it in the game ID.

To have the information on how to set the default, I guess is mostly a documentation issue, just pointing the place where it's set would be a minimum.

add solver option "active robot must ricochet before reaching the goal"

feature request via BoardGameGeek
https://boardgamegeek.com/article/30145862#30145862

Is it possible to include an option to turn off the "active robot has to ricochet at least once before
reaching the goal", but not allow the 1-move solution?

This is the example I came across: (screenshot)

Without the ricochet rule above, it can be done in 7 moves (green: W S E silver: S blue: W S red: E),
which I think could be permissible as another robot is needed.

The custom board on that screenshot is this one:
!DriftingDroids_game!C290C2E0!AAABM3jaY2BgYOAAYVYgYQDEJkCsCsRmQCwExAyMU
ABkMcABEhNNkJERizxYMyOSTka4ClRxmCEQmhHBJN1eRoTDKXIAlDICs4AkIwAm6QGF!

smaller hint steps

Please add a button to show less thorough hints, for example, If there is a solution with 12 moves,

  1. Show how many solutions
  2. Show "less than 15 moves"
  3. less than 14 moves
  4. less than 13
  5. in 12 moves

Non optimal solution

I am playing with the problems from Robot Reboot, and I find a solution to this
problem in 8 moves:

  1. Green W
  2. Blue S
  3. Blue S E
  4. Red S
  5. Green E
  6. Green N
  7. Green W
  8. Red N

while Drifting Droid find the best solution in 12 moves:

indice : la solution comporte 12 mouvements.

  1. → jaune Est
  2. ↓ jaune Sud
  3. ← vert Ouest
  4. ↓ bleu Sud
  5. → bleu Est
  6. ↓ rouge Sud
  7. ← jaune Ouest
  8. ← bleu Ouest rebond
  9. ← rouge Ouest
  10. ↓ bleu Sud
  11. → rouge Est rebond
  12. ↑ rouge Nord

How do I start this on Ubuntu?

I cloned the he repository and tried to start it with

./start.jar

and with

java start.jar

But I got the error

Fehler: Hauptklasse start.jar konnte nicht gefunden oder geladen werden

I have instaled java jdk and jre but still I cannot start it.

Can you please update the README, so I can start it?

Start.jar doesn't work on Ubuntu 21.04 with openjdk 11

java --version
openjdk 11.0.11 2021-04-20
OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2)
OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2, mixed mode, sharing)

$ ./start.jar 
invalid file (bad magic number): Exec format error

$ java ./start.jar
Error: Could not find or load main class ..start.jar
Caused by: java.lang.ClassNotFoundException: //start/jar

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.