Siteswap validator
Hi, I have tried to make a siteswap validator because I realised that I need it for some other things I want to do. Before starting I had no idea how to write a validator that would work with vanilla, synchronous and multiplex patterns. After reading up on siteswaps I think I have got my way through it and have made a validator that I can't trick but I am unsure if it is infallible.
It only checks the 'average rule' and the 'countdown rule' as well as some syntax things. Is that enough?
Any help appreciated, thanks
When going to your website I get the pop-up warning:Do you want to run this application ?
An unsigned application from the location below is requesting permission to run.
Location: http//juggling-records.com/
Running this application may be a security risk
You might want to fix that in case it scares away the more wary internetist
(warning appeared on both firefox, opera & chrome browsers)
Thanks. I think that is a Java message (although I'm not sure because I am unable to recreate it). I have removed Juggling Lab from the sidebar. Would you mind looking again to see if the message is still there?
On the Edge I just use a stripped down version of the code I used for the TWJC Siteswap Calculator (code behind it is here).
I just do pattern matches to check syntax, then a countdown test.
I couldn't find any misvalidations. But * is deinitely a valid character & is very popular!
Thanks. I will look through that code. At a glance it looks like it will be very helpful - especially with regular expressions, which I know little to nothing about. Also I can't believe I forgot about asterisks!
It seems to work for most vanilla siteswaps, although some synchronous patterns have issues. (6x,4) are incorrectly reported as being valid. Also, you can have more than 3 numbers inside the brackets of a synchronous siteswap, and it just ignores the extra numbers, like (4,4,8).
However, I like the fact that the commas in synchronous notation are optional—I'd like to see people stop using them altogether, personally.
Subscribe to this forum via RSS
1 article per branch
1 article per post