Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(+1)

Nice game, two bug reports however:

(1) In level 17, it should be stated that you can suppose that prime 13 doesn't appear on the input (it is not apparent from the problem statement, and it is necessary to have a guaranteed prime which will not occur).

(2) (parsing bug?, I don't understand the details) When I enable nocancel, and input "5*7*3*11/2*3*11", it gets interpreted as:

A = as entered: [Empty], raw numbers: 1155/13

B = as entered: 5⋅7⋅3⋅11/2⋅3⋅11, raw numbers: 13/66

Factored Form: 3*5*7*11/13, 13/2*3*11

This is quite constraining me with proceeding in the game... I tried to reload the page, or try another level, and still shows the same weird bug.

(1) is a very good point that I completely overlooked! When programming in FRACTRAN, it's usually the case that you know in advance the small list of primes that will be relevant to the problem, so you can always find a "13" for any given program.

(2) One might imagine an extension of FRACTRAN allowing fractions with the following behavior: If the number is divisible by 66, then multiply by 1155/66 = 35/2, and if it's not, move on to the next fraction. Normally if you entered 1155/66 it would cancel down to 35/2 and so the fraction would activate on any number divisible by 2, not just those divisible by 66.

This extended version of FRACTRAN is expressively equivalent to ordinary FRACTRAN, where fractions always get canceled. What's happening is that nocancel mode is translating your code into an equivalent valid program, using the same technique as in my solution to level 17.

(2) I see, thanks for the explanation. I didn't expect nocancel to modify my input, I thought it was merely a running flag.