Search found 41 matches
- Jul 8th, '19, 08:59
- Forum: Projects
- Topic: Pentominoes in GP
- Replies: 0
- Views: 24449
Pentominoes in GP
the challenge of pentominoes is to fit all 12 pieces (each piece having 5 cells) to cover an area of 60 cells. amazingly, these 12 pieces can fully cover these rectangles: 6x10, 5x12, 4x15 and 3x20, each rectangle having an area of 60 cells of course. the pieces can also cover an 8x8 chessboard with...
- Jul 7th, '19, 05:49
- Forum: Projects
- Topic: Knight's Tour in GP
- Replies: 0
- Views: 24650
Knight's Tour in GP
From wikipedia: A knight's tour is a sequence of moves of a knight on a chessboard such that the knight visits every square only once. If the knight ends on a square that is one knight's move from the beginning square (so that it could tour the board again immediately, following the same path), the ...
- Apr 1st, '19, 05:14
- Forum: Projects
- Topic: 8 queens in GP
- Replies: 1
- Views: 7530
8 queens in GP
i wrote this program as a way of learning GP by immersion. It's the classic 8-queens problem of putting 8 queens on a chessboard such that no queen is under attack by any other queen. (the program displays the placement of the 8 queens on the chessboard for half a second after each solution is found...
- Nov 21st, '18, 03:30
- Forum: Projects
- Topic: sudoku solver in GP!
- Replies: 2
- Views: 8506
Re: sudoku solver in GP!
gee thanks!
- Nov 15th, '18, 04:57
- Forum: Projects
- Topic: sudoku solver in GP!
- Replies: 2
- Views: 8506
sudoku solver in GP!
here's another one of my "useless" (but fun!) projects - a sudoku solver. enter the puzzle board as a long string of nine segments (separated by a space), each segment consisting of 9 digits (0 means blank cell) corresponding to pattern of digits in each row. a couple of puzzles are supplied for cut...
- Nov 12th, '18, 12:48
- Forum: Bugs
- Topic: copy costume from <dirlist> doesnt work in exported app
- Replies: 2
- Views: 7608
Re: copy costume from <dirlist> doesnt work in exported app
worked like a charm! thanks for the quick response! (i just have to remember to use PNG formats)
- Nov 12th, '18, 11:46
- Forum: Bugs
- Topic: copy costume from <dirlist> doesnt work in exported app
- Replies: 2
- Views: 7608
copy costume from <dirlist> doesnt work in exported app
i have a small app that performs some process against a supplied image - during"regular" (interpreted) mode it allows the user to select file from the drop down part of the 'copy costume..' block. when exported to app as is, the executable works but it doesn't allow the selection of an image. it use...
- Nov 9th, '18, 07:49
- Forum: Projects
- Topic: img2txt - convert a jpg to ascii
- Replies: 0
- Views: 24677
img2txt - convert a jpg to ascii
i know this project is kind of "retro" but i have always been fascinated how they did this stuff in the old days. I was excited to find out that i was able to do it in GP. I translated the basic code from a project i saw in github (https://github.com/hit9/img2txt) and recoded it into GP. to use it, ...
- Oct 23rd, '18, 02:09
- Forum: Extending GP
- Topic: A way to add 'Infinite' Integers?
- Replies: 4
- Views: 12908
Re: A way to add 'Infinite' Integers?
it works in its current form but i have to right click on the input boxes so they change from oval (numeric input) to rectangle (string input) before i enter my data. (see image).
however, after i applied your fix, i don't have to think about doing that anymore! thanks!
however, after i applied your fix, i don't have to think about doing that anymore! thanks!
- Oct 22nd, '18, 05:00
- Forum: Extending GP
- Topic: A way to add 'Infinite' Integers?
- Replies: 4
- Views: 12908
Re: A way to add 'Infinite' Integers?
as an exercise, i translated the code to GP! (https://www.geeksforgeeks.org/multiply- ... s-strings/)