Search found 23 matches

by manyone
Jul 24th, '19, 00:16
Forum: Projects
Topic: Rosh Hashanah calculator
Replies: 0
Views: 90

Rosh Hashanah calculator

there is nothing religious about this post. i'm not jewish but i've always been fascinated by calendars and the formulas behind them. the hebrew calendar is special because its formula evolved from apparent astrological and seasonal observations throughout history and its current form involves a lot...
by manyone
Jul 17th, '19, 06:30
Forum: Working with GP
Topic: Excel serial dates conversion in GP
Replies: 0
Views: 90

Excel serial dates conversion in GP

i'm attaching functions for converting Excel serial dates to YMD dates and back. Excel serial dates represents the number of days since 12/31/1899 . Excel has a bug - it treats 1900-2-29 as a leap date when in fact it's invalid, since 1900 is not a leap year. These 2 functions replicate the same beh...
by manyone
Jul 8th, '19, 08:59
Forum: Projects
Topic: Pentominoes in GP
Replies: 0
Views: 67

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...
by manyone
Jul 7th, '19, 05:49
Forum: Projects
Topic: Knight's Tour in GP
Replies: 0
Views: 65

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 ...
by manyone
Apr 1st, '19, 05:14
Forum: Projects
Topic: 8 queens in GP
Replies: 1
Views: 182

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...
by manyone
Nov 21st, '18, 03:30
Forum: Projects
Topic: sudoku solver in GP!
Replies: 2
Views: 404

Re: sudoku solver in GP!

gee thanks!
by manyone
Nov 15th, '18, 04:57
Forum: Projects
Topic: sudoku solver in GP!
Replies: 2
Views: 404

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...
by manyone
Nov 12th, '18, 12:48
Forum: Bugs
Topic: copy costume from <dirlist> doesnt work in exported app
Replies: 2
Views: 400

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)
by manyone
Nov 12th, '18, 11:46
Forum: Bugs
Topic: copy costume from <dirlist> doesnt work in exported app
Replies: 2
Views: 400

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...
by manyone
Nov 9th, '18, 07:49
Forum: Projects
Topic: img2txt - convert a jpg to ascii
Replies: 0
Views: 479

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, ...