-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

        Foldapuz.com
		
 A series of ProcGen puzzles
  and other games which you
  can enjoy using good old
        pen and paper.
		
 Twitter : @Foldapuz
Facebook : https://fb.me/Foldapuz

    Print - Fold - Solve
	
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

    Created by @Jayenkai
       AGameAWeek.com

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

  Many thanks to the users
      of SoCoder.net
	   
  Dabz, Spinal, and Rychan
 
     for their wonderful
      help and guidance.

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

14 October 2018
Yet another fix for "Crossed".  I'm really not sure why it occasionally outputs completely blank puzzles.
All very odd.
I think it's a memory/variable issue, as it seems to be happening most often when the puzzle takes too long to generate, and curiously empties itself as it does so!
Anyway, I've rewritten chunks of it, yet again, in the hopes that it'll finally fix the issue, but ... yet again, it's reset the "Yesterday's Solution" content, so apologies for that.

09 October 2018
Added Critically Triangular.
Aaah, the joys of trigonometry!
Also added Word Snake, which doesn't currently have any solutions, because I'm not sure how I could do that!
In addition, I've also rejigged the puzzle selection menu to make it a little bit neater, sectioning off the games into their various categories, and I've also shuffled the How To instructions to be in the same order.

07 October 2018
Added Word Grid.
It's not the best word selection, but at least it works.
I did try making it only use "The most common 3 letter words", but it tended to get stuck whilst trying to generate the puzzles.
I might rejig this game at a later point.

04 October 2018
Spent an insane amount of time reformatting the URL so that I can add the new Words/Maths/Logic shortcut URLs into the mix.
Seems to function well enough, and should allow people to quickly pick their favourite types of puzzles from the site.
Additionally added a very brief set of instructions for the games in the "How To" page.  Hopefully that's enough instructions to get the player going.
As always, let me know if it isn't!

03 October 2018
Nips and tucks.  The site has been moved to a new server, and I've rewritten a bit of the cache code, so it all works a little bit faster.
Added Logic Battleships, which Dabz suggested, right at the very start of this project.  Sorry it took so long!

27 September 2018
A quick tweak to the Word Ladder generation.  It was getting rather silly, and replacing letters with letters it previously used, leading to very repetitive ladders.

26 September 2018
After realising how bloomin' simple yesterday's version of "Solve A,B,C" was, I spent an hour or so trying to find the most convoluted of puzzles.
I think the maths should be fairly complex, now, but am more convinced than ever, that figuring out the solution isn't as mathematically simple as it should be.
Added Move One Digit, which needed a brief explanation.
Currently considering adding a similarly short description to each of the panels.

25 September 2018
Further tweaking to the "Find a Way" maze generator.  Things are hopefully a little more varied, now, and I've also upgraded the solution display.
Added Solve A, B, C. (Thanks to Liam Kelk for suggesting it.)
I'm not 100% convinced that it's do-able, and will have to sit and try to solve a few of the puzzles over the next day or two!!  Quite honestly, my maths brain has melted from all the coding, tonight!!

23 September 2018
A minor update to the way Word Ladder is generated, which has sped the whole thing up by a remarkable amount.  What took about 3 or 4 seconds, yesterday, now takes about 0.2 seconds.
Optimisation is the key!
Technically, instead of checking each and every word in the list, I first ensured the wordlist was properly alphabetised..
Next I jump through the list in groups of 1500 words, until "over", then do a quick sift between the 1500 chunk of words.
This is a standard thing, but something I've avoided due to Wildcard functionality.  eg, If the word you're looking for is "?abbage", how do you know where to stop?
In case I need wildcard functionality in future, I've left the old code available, but even that could do with some neatening around the edges, possibly converting everything to numbers..  Hmm..

19 September 2018
Rewrote a significant portion of "Sudoku" thanks to feedback from @JulieMontoya20.  The puzzles are a lot easier, now, but should at least be doable!
Added Word Ladder.  It's a little bit slow.  Hopefully I can find a way to speed that up.
Note : Due to the way I've rewritten the Random Words code, (so the Word Ladder worked!) Yesterday's Solutions will not work properly for today or tomorrow.

17 September 2018
Finally happy with the "Find a Way" maze generation.
Added Sudoku.

16 September 2018
Added a "Yesterday's Solutions" option.
Updated "Number Target" to remove instances where it would do "n x 1", which resulted in uninteresting maths!
Updated "Crossed" to remove some of the 8-letter word's letters.
Added Find a Way.  I might rejig this in the future, though.  I'm not 100% happy with the difficulty.

15 September 2018
Finally got v1 of the website up and running!  Simple drop down menu items and a puzzle page!

14 September 2018
Switched to using a TTF font, specifically SourceCodePro-Semibold.ttf (Which 1001fonts.com says is free to use.)
https://www.1001fonts.com/source-code-pro-font.html

13 September 2018
Tweaked Doodle to draw less "squiggly" and more "scrawl-like".
Tweaked Target to be less random, and instead do a bit of maths to set the target, so that all targets are at least possible.

12 September 2018
Added Doodle, Target and Anagram.
Tweaked Crossed to give more common words instead of the bizarre, cryptic 4-letter oddities that it was previously coming up with!

11 September 2018
First code session.
Managed to get Lattice and Crossed to work simply enough.
Decided on name and logo, with a little help from SoCoder user Dabz.

03 September 2018
Initial conception, and first test of printed foldable layout.
Left the idea to ferment for a week!!


Reasoning
Over on my site Socoder.net, we have a daily poll, and each day it gives you something to vote on, then the next day you get points based on whether you voted for the winning item on the poll.
It's been there for many many years, now, and I'm starting to get a little sick of the sight of the bloomin' thing, but what could I possibly replace it with?
The current leading idea is a doodle box, where the players are given a start point and a few colours, and the best art wins.  But that then requires a second day of voting, and everything starts to get a little bit slower.
There's nothing that's sprung to mind that works as immediately as a daily poll does.

But I have had a lot of other little puzzle ideas over the time I've been thinking about this.
Each of the puzzles seems logically playable, but none lend themselves well to being something you can score, like you score the votes of a poll.  You could also, quite easily, cheat at a lot of these kinds of puzzles.

For years, these little logic puzzles have bubbled around in my head, and normally I'd end up making AGameAWeek about each idea, but a lot of the ideas don't really work well on computer at all.
Some need keyboard or mouse input, and yet a lot of my framework relies on the player only having a gamepad in hand.  Or I write them so they work perfectly with a gamepad, and the player's playing on a touchscreen.
There are many many issues with converting some of these ideas into videogames.

Over the past month or so, more and more of these "it only works on paper" ideas have been filling my mind, and this is me trying to put them somewhere functional.
It might not be the world's best set of puzzles, and I'm sure you'll find better puzzles where someone's had the time to actually "compile" them, and set their difficulty levels.

This is simply what happens when a gamedev can't think of anywhere else to output these sorts of ideas!

I hope you enjoy the games.

And, maybe some day, I'll actually replace that poll!