Code Monkey home page Code Monkey logo

miscellany's People

Contributors

andrewschultz avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

miscellany's Issues

icl-pl -co

This comments out the rule below, builds, and then uncomments it. It's currently necessary for A Roiling Original, to test glulxe without the windows freezing it up.

[comment out the rule below]

when (etc)

  1. look for next text
  2. look for next no-text after, slap on a ]
  3. undo it later as follows: look for comment out, then s/^]//g and then the s/^]//g;

icl.pl should search for files not just in c:\games\inform

To add to icl.txt,

default=c:\games\inform

for nonstandard path,

force threediopolis=c:\other\3dop.inform\source

$=threediopolis.inform\Source would allow

force threediopolis=c:\other\$

Sending it to other\threediopolis.inform\source

move beta/debug/release all to one sub-function

sub build

Arguments:

  • original source
  • base dirs
  • output binary file
  • output release file
  • command line flags for inform633 run
  • create auto.inf
    • If it fails, bail & grey out the ULX and blorb file test
  • create a ULX file or whatever
    • If it fails, bail & grey out the blorb file test
  • create a blorb file
    • If it fails, bail

try for 720 with 1 draw left

Are there any wins with "ones?"

I'd need a special 720s flag to make sure we don't print the results. And of course check for 6 draws left etc

Also helpful perl code

use Algorithm::Permute;


my @array = 'a'..'d';


Algorithm::Permute::permute {
    print "next permutation: (@array)\n";
} @array;

create HTML or HTML output for tests run

Every test could have a line

TEST RESULTS:test name, subtest name,x failed,y passed,z acceptable

if (x == 0) { print "td bgcolor=green"; } elsif (x <= z) { print "td bgcolor=yellow"; } else { print "td bgcolor=red"; }

Define a GoodShuffle function

This will tell us if we leave anything on an empty square.

It should be used after X(124) or W(124) or whatever. We will try each goodShuffle until there is none. We will only work with the current suit, as well.

It should be tacked on to the end of autoShuffleExt.

sub goodShuffle (row-1, row-2, currentSuit)
{
  if (row 1 or row 2 doesn't have the right suit on the bottom) no
  if (either row is empty) no
  if (2 rows empty) yes
  if (row-2 has 2 or fewer chains below row-1), safe # note we must also check if it is meaningful e.g. 10H vs 8h 5h 4h 2h 1h with 1 empty row is safe, but it is not meaningful. But with 2 empty rows, it is safe and meaningful.
# also KH QH AH to 7H 4H 3H is safe, because we can go backwards. So this is tricky.
# in addition having * KH QH AH and JH 9H 7H 6H is safe from 1st to 2nd, then 2nd to first, if there is an empty row
}

while (safeShuffle) { proceed with it, also maybe run ones(-1) }

This can be used to sort things out after X123. If there is an empty

Autumn Leaves: TEST for test case

Allows for me to check various scenarios.

There will be an external file called altest.txt. If it is not there, TEST bails.

Error message if I type an invalid TEST

CASE=endgame
L=13,12,11,10,9,8,7,6,5,4,3,2,1
L=17,16,15,14,13,26,25,24,23,22,21,20,19,18
L=39,38,37,36,35,34,33,32,31,30,29,28,27
L=52,51,50,49,48,47,46,45,44,43,42,41,40

say.pl: I7 tool

Track which "to say" constructions have been used, as well as if there are duplicates.

Create new punctuation judger

punc+.pl, like punc for ARO but

table=[name]
Maybe for each argument, have something
caps,title,sentence,none,any|period,none

Then we can look in general for errors.

Autumn Leaves: undo

Keep an array of (simple) moves to add. Undoing means go up to the last one.

If a card is overturned, we need to specify that e.g.

56:17

for $nextM in @Undos (if ($nextM =~ /:/) {@Mvsplit = split(/:/, $nextM) @force = (@force, @Mvsplit[1]); tryMove($mySplit[0]); } else { tryMove($nextM); }

stats

w/l, streak, all time, %age

rpc.bat/py

This is a script that will copy everything over to \games\inform\prt. It will look at the directory to see what should be copied, and what should be named.

Goals are to learn about python hashes and so forth.

If there is an argument we will force the from directory. If not it will rely on the current directory.

LettersOf function

This breaks a command into letters and numbers. That will allow more precise parsing.

$letters = $cmd; $letters =~ s/[^a-z]//gi;
$numbers = $cmd; $numbers =~ s/[^0-9]//gi;
$garbage = $cmd; $garbage =~ s/[^0-9a-z]//gi; if ($garbage) { print "Excess characters\n"; }

Obviously we need to check for commands that should contain garbage, like save etc. But this allows for more directed error messages.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.