Zendo, play by forum

Started by Simon, August 25, 2014, 01:33:33 AM

Previous topic - Next topic

0 Members and 6 Guests are viewing this topic.

Simon


Proxima

JOYJOY
JOYSWIM
SWIMJOY
SWIMSWIM

Dullstar

CAKE
COOKIE
CHOCOLATE
VANILLA
MUFFIN

namida

My projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)
Non-Lemmings: Commander Keen: Galaxy Reimagined (a Commander Keen fangame)

WillLem

#799
White Koans
JOY
SOY
CAKE
COOKIE
CHOCOLATE
VANILLA
MUFFIN

Black Koans
SWIM
SWY
SWI
OY
Y
J
JO
JOYJOY
JOYSWIM
SWIMJOY
SWIMSWIM
JWIM
SWIT
JOM

(I'll take a look at the auto-formatter soon)

Proxima

SOY is on both lists.

JJ
JJJ
O

WillLem

#801
Quote from: Simon on November 04, 2024, 09:36:20 PMRun it from a console without arguments

Not sure how to do this, so I'm using namida's GUI-based tool for now.

@namida - Do you have the source for your KoanTool? I'll have a go at adding asterisk-placing logic for new koans.

Quote from: Proxima on November 15, 2024, 02:07:44 PMSOY is on both lists.

Fixed, it's white. Here's the updated list:

White Koans
CAKE         COOKIE       MUFFIN       VANILLA     
CHOCOLATE    JOY          SOY                       


Black Koans
J            JOM          O            SWIMSWIM     
JJ           JOYJOY       OY           SWIT         
JJJ          JOYSWIM      SWI          SWY         
JO           JWIM         SWIMJOY      Y           

Simon

Quote from: WillLem on November 15, 2024, 03:08:40 PM
Quote from: Simon on November 04, 2024, 09:36:20 PMRun it from a console without arguments
Not sure how to do this

Create a batch file (right-click, new text file, rename later to runme.bat) in the same directory where zendofmt.exe and koans-w.txt and koans-b.txt sit.

Write into it:
.\zendofmt.exe > formatted.txt

Double-click the batch file.

-- Simon

WillLem

Quote from: Simon on November 15, 2024, 04:55:22 PM(Instructions)

-- Simon

Thanks! :thumbsup:

Tested working, but I'll keep the above table as the most recent one for now rather than reposting the same data.


WillLem

#805
White koans:
  CAKE
  CHOCOLATE
  COOKIE
  JO
  JOY
  MUFFIN
  SOY
  VANILLA

Black koans:
  J          OY
  JJ         SWI
  JJJ        SWIM
  JO         SWIMJOY
  JOM        SWIMSWIM
  JOYJOY     SWIT
  JOYSWIM    SWY
  JWIM       Y
  O        * YO
* OJ       * YOJ

Simon

ANGELS
ENGULFED
EAST
SUMMER
SWUM

CEKA
ACEK
EACK

-- Simon

namida

C
CH
CHO
CHOC
CHOCO
CHOCOL
CHOCOLA
CHOCOLAT
SO
YOY
AOY
EOY
IOY
OOY
UOY
My projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)
Non-Lemmings: Commander Keen: Galaxy Reimagined (a Commander Keen fangame)

namida

Quote from: WillLem on November 15, 2024, 03:08:40 PM
Quote from: Simon on November 04, 2024, 09:36:20 PMRun it from a console without arguments

Not sure how to do this, so I'm using namida's GUI-based tool for now.

@namida - Do you have the source for your KoanTool? I'll have a go at adding asterisk-placing logic for new koans.

I don't even have the binary anymore for my old one, but here's the one I was using in the previous round (which already has the asterisk-placing). Compile with Visual Studio. Modify the CheckKoan function to implement your rule - it should return TRUE if the koan is white, FALSE if it's black. If your rule is quite complex, make sure you've thought about edge cases (even in my previous round with a relatively simple rule for example, I had to consider the case of single-letter koans, which don't have a second letter to count) - I'm sure you're well and truly experienced enough with coding by now to handle this.

Usage (all files mentioned should be in the same folder as the compiled EXE):
1. Put all new koans (ie: should be marked with a *) in "input.txt", one per line. Order and case don't matter and duplicates will be automatically filtered out, as will any spaces before or after the koan.
2. Put all old koans (ie: should be on the list but NOT marked with *) in "old.txt". Again, order and case don't matter. If a koan is in both files, old.txt takes priority (so it won't be marked with a *).
3. If you want to add a notes section like I did near the end of my round regarding the string-of-single-letter koans, put it in "notes.txt".
4. Run the EXE (no fancy stuff needed). You'll see a command prompt window for a split second then it'll close.
5. Check "output.txt" for the output. Note that when you run the EXE, it also updates "old.txt" to add all the new koans from "input.txt" to it. (So you should only ever need to modify old.txt if you're starting to use this tool mid-round. But it's good to know how in case an edge case comes up.)

(If you prefer to manually check the koans, this tool probably won't help you much, it's very much designed around the tool itself checking and doesn't have a way to manually specify if a koan is black or white. I do very strongly recommend manually double-checking it until you're very confident that your code is correct for your rule.)
My projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)
Non-Lemmings: Commander Keen: Galaxy Reimagined (a Commander Keen fangame)

WillLem

Quote from: namida on November 16, 2024, 06:07:54 AMhere's the one I was using in the previous round

Thanks for this, I'll take a look at it. Auto-checking the koans is pretty neat! Ideally, I'd like to create one that does everything in the GUI, like your previous one (I've attached the binary to this post) rather than using separate .txt files to input and output everything.

In the meantime, I'll continue to use Simon's for now since I've already started this round with that one.

White koans:
* ANGELS
  CAKE
  CHOCOLATE
  COOKIE
* EAST
  JOY
  MUFFIN
  SOY
* SUMMER
  VANILLA

Black koans:
* ACEK     * CHOCOLAT    JOYJOY     SWIMJOY
* AOY      * EACK        JOYSWIM    SWIMSWIM
* C        * ENGULFED    JWIM       SWIT
* CEKA     * EOY         O        * SWUM
* CH       * IOY         OJ         SWY
* CHO        J         * OOY      * UOY
* CHOC       JJ          OY         Y
* CHOCO      JJJ       * SO         YO
* CHOCOL     JO          SWI        YOJ
* CHOCOLA    JOM         SWIM     * YOY