Join us on Discord!
You can help CodeWalrus stay online by donating here.
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - JWinslow23

#51
Other / At First Sight, The Verdict? Best in Show!
December 24, 2015, 02:14:26 PM
Here are two amazing YouTube videos, from the mind of the channel POYKPAC, where the entire dialogue of the videos are titles of movies:





A list of all the movie titles:
[spoiler="Breakup in movie titles"]Traffic
Waiting for Forever
Just My Luck
Seven
Like Crazy
Accidents Happen
Just Your Luck
Everyday
Babe
Be Cool
I'm Still Here
I Love You to Death
Pretty Woman
I Love You Too
When Do We Eat
Waitress
A Little Help
Jackass
I Am Sam
For Your Consideration
The Specials
Good Burger
As Good As It Gets
Out of Sight
Make it Happen
Taking Sides
Home Fries
Anything for Her
Layer Cake
Cake
Just Go With It
She's Having A Baby
Top Secret
Mamma Mia!
Anything For You
Baby Doll
She Gets What She Wants
Due Date
9 1/2 Weeks
8 1/2
Kick-Ass
Anything Else
Honey
ctail
Manhattan
Thank You
Precious
Juice
Milk
Beautiful
15 Minutes
Can't Hardly Wait
Is Anybody There
Something's Gotta Give
Talk To Me
Get a Clue
Clue
I Know What You Did Last Summer
Heaven Help Us
What Is It?
Rumor Has It
Very Bad Things
How Do You Know
On the Waterfront
My Boss's Daughter
Saw
The Girl Next Door
Kissing A Fool
My Cousin Vinny
Saw II
He Said She Said
Please Give
Proof
Somewhere
Living Proof
Body of Evidence
Say Anything
Find Me Guilty
The Hot Chick
Next Door
What Planet Are You From?
She's Out Of My League
Maybe... Maybe Not
Definitely, Maybe
I Still Know What You Did Last Summer
Enough
Just a Kiss
Once
Liar, Liar
Just One Time
Answer This
Who Do You Love?
What's Love Got to Do with It?
Waiting...
It's Complicated
Still Waiting...
Just Tell Me What You Want
Nothing But the Truth
The Ugly Truth
Nothing to Lose
It's Kind of a Funny Story
Doubt
It
Why do Men Cheat?
I Am A Sex Addict
Cop Out
That's What I Am
It Runs in the Family
Two Can Play That Game
Guess Who's Coming to Dinner
People I Know
Jack
The Cable Guy
The Wrestler
The Mexican
You Don't Know Jack
The Doctor
The Artist
My Baby's Daddy
In The Name of the Father
If....
Who Am I?
The Man Who Wasn't There
Dear God
Why Did I Get Married?
Why Did I Get Married Too?
This is It
The Break-up
I Could Never Be Your Woman
Unfaithful
Look Who's Talking
Big
Dummy
Basket Case
Bully
Creep
Loser
Whore
Monster
Psycho
From Hell
Anti Christ
Cheaters
Shame
A Dirty Shame
A Low Down Dirty Shame
M
Don't Say A Word
Phffft
Shut Up Little Man
That's My Boy
Are We Done Yet
Eat Drink Man Woman
Clueless[/spoiler]
[spoiler="Drug deal in movie titles"]Apartment 143
About Time
Hello Again
Jimmy P.
Are You Here
Before Midnight
Miracle
c
Listen
Alice
Please, Not Now!
Not Today
The Longest Day
Today
Dealin' With Idiots
Still Alice
I Wish
Wish I Was Here
Right At Your Door
In
30 Minutes or Less
Wish You Were Here
Before I Go to Sleep
Every Day
Three o'Clock High
That's the way I like it
Cut
The Guilt Trip
Jimmy
While You Were Sleeping
I Am
On the Job
In Over My Head
All Day Every Day
Take It or Leave It
I Am Here
Now You See Me
Yes or No?
Eye See You
You Are Here
Now You Know
Still
This is Where I Leave You
Hold On!
Wait
Thin Ice
Jamesy Boy
Breakdown
The Goods
Here
Speed
Blow
Dope
Crank
Lovely Molly
Ecstasy
All Good Things
Grass
The Usual Suspects
Blue Jasmine
Afternoon Delight
Pineapple Express
Black Snake Moan
Shortbus
Air Bud
Baadasssss!
The Right Stuff
Best of the Best
Something New
XXX
I Got the Hook-Up
Effects
Premium Rush
Limitless
Confidence
Sounds
Ridc
Side Effects
Insomnia
Fear
Vertigo
Falling Down
Nervous Ticks
Happiness
Misery
Arachnophobia
Hook
Me
Up
Brave
What's the Worst That Could Happen?
Unknown
Bring it On
What Doesn't Kill You
Good Boy!
A Man for All Seasons
Price Check
The Pill
Fifty
It Takes Two
50/50
This is 40
Twenty Bucks
Cheaper by the Dozen
20, Once Again!
Steep
OK, Good
All That I Need
For Me and My Gal
Four Bags Full
What Now? Remind Me
All Together
360
Throwdown
Killing Me
Any Day Now
300
While We're Young
About Fifty
The Remaining
10
The Ten
Paid In Full
Thank You
Thank You For Smoking
Hello I Must Be Going
I Can See You
Out
I Know Where I'm Going
61*
Columbus Circle
On My Way
I'll Be Seeing You
Next Time
This May Be the Last Time
You're Gonna Miss Me
No
This is The End
Click
Photographic
Evidence
Check Mate
So Long Jimmy
42
54
Code Blue
12 o'Clock Boys
Go
We Are the Best!
Next
Court
The Judge
Jail
10 Years
16 to Life
Drug War
God Bless America
Ha Ha Ha
LOL[/spoiler]
I really like this idea. It's a wonderful concept for constrained writing.

What I was wondering, is if a few of us could team up to, if not act out and shoot, at least write something like this. First and foremost, we'd need an searchable list of movie titles (or all of them in a text file, whatever). Hook Me Up? :w00t:
#52
Other / Today Is The Day After Doomsday
December 20, 2015, 09:02:30 AM
WARNING: The following post includes math concepts and calendar calculations that certainly are NOT for the faint of heart. :P
As well, at request of c4ooo, I have put the equivalent mathematical equations in spoilers below each method. Please don't hate me...I eat my cereal dryyyyyyyy :P


No, not that kind of Doomsday :P

As a geek, I have some weird, strange, burning obsessions from time to time. A lot of these have to do with math. This time, it is calendar math. Specifically, a way to calculate the day of the week for any given date. Since we haven't adopted the World Calendar system yet, it's hard to find the day of the week if you're given a random date. For example, what day of the week was March 10, 1985? Don't use a calendar!
[spoiler=Give up?]It was Sunday.[/spoiler]
See, it's hard to figure it out. And you only have a ~14.28% chance of guessing randomly, which isn't great. So what do we do? Well...in short, that depends on who you're talking to.



Purely Mathematical Methods

Math is a wonderful tool. You can use it for many different practical purposes...including and especially finding the day of the week. Here are a few popular methods for computing this.

Zeller's Congruence

Christian Zeller is a German mathematician, who specialized in this sort of mathematics. He had created a method for calculating the day of the week, given in a formula that goes like this:


The one disadvantage of this method is the unusual month counting convention; any date in January or February is treated as months 13 and 14 in the previous year. However, feeding in the "correct" numbers for month, day, and year will adjust for you.

Gauss' Algorithm

Johann Carl Friedrich Gauss, another German mathematician, had described a method for calculating the day of the week for January 1st in any given year (only applicable to the Gregorian calendar), which was never published. The formula is this:


There have been modifications made to this to apply to any date, instead of only January 1st, which works in any calendar system. One such modification is as follows:


Mike Keith's C expression

In 1990, an American mathematician and constrained-writing author named Mike Keith published the following terse self-contained C expression for calculating the day of the week of any day in the Gregorian calculator:
(d+=m<3?y--:y-2,23*m/9+d+4+y/4-y/100+y/400)%7
This is equivalent to the following mathematical expressions:

This is equivalent to the following TI-BASIC code (with month, day, and year stored in M, D, and Y, and the result will be in Ans)[1]:
:Y-(M<3
:round(7fPart((int(23M/9)+D+4+Y+int(Ans/4)-int(Ans/ᴇ2)+int(Ans/400)-2(M≥3))/7),0




Mental Calculation Methods

Just in case you don't have a high-speed computer (or TI-83+ calculator) with you at all times, here are some methods ENTIRELY involving memorization and mental calculation. You know...if you're into that sort of thing ;)

Carrollian Method
Charles Lutwidge Dodgson (aka Lewis Carroll, famous for Alice's Adventures in Wonderland and Through the Looking Glass) was an insane writer by day, and an insane mathematician by day also. He had discovered his own method of determining this (which was in Martin Gardner's book The Universe in a Handkerchief: Lewis Carroll's mathematical recreations, games, puzzles, and word plays ), which goes as follows (my attempt to put it in clear English language):

  • Calculate 4 numbers based on the century, the years past the century, the month, and the day of the month.
  • #1: Century

    • For "Old Style" (Julian[2]; valid up to September 2, 1752[3]), subtract the century from 18.
    • For "New Style" (Gregorian; valid from September 14, 1752 onwards[3]), divide the century by 4, subtract the remainder from 3, then double that.
  • #2: Year

    • Add the number of "dozens" that go in the year, the remainder, and the number of 4s that go in that remainder.
  • #3: Month

    • If the month is January, the number is 0.
    • If the month is February or March, the number is 3.
    • If the month is December, the number is 12.
    • If the month starts or ends in a vowel (y excluded), subtract the month number from 10 (i.e. April is month 4, so for April, 10-4=6).
    • For any other month, take the number for the month before it, and add the number of days in that month (i.e. April=6, so May=6+30=36).
  • #4: Day

    • The item is simply the day number.
    • HOWEVER, you must subtract 1 if the date is January or February in a leap year.
    • Reminder: Every year divisible by 4 is a leap year, except an even century in "New Style" (Gregorian) where the number of centuries is not divisible by 4 (i.e. 1976 is, 2000 is, 1900 is not).
  • Sum these 4 numbers, divide by 7, and take the remainder.
  • The total is the day of the week (0=Sunday, 1=Monday, etc.)
[spoiler=Examples]September 18, 1783 (Gregorian)
17/4=4, remainder 1. 3-1=2. Double 2 is 4.
83/12=6, remainder 11. 11/4=2, remainder 3. 6+11+2=19.
The number for August is 10-8=2. August has 31 days. 2+31=33.
The day is 18.
4+19+33+18=74. 74/7=10 remainder 4.
Therefore, September 18, 1783 was a Thursday.

February 23, 1676 (Julian)
18-16=2.
76/12=6 remainder 4. 4/4=1. 6+4+1=11.
The number for February is 3.
The day is 23, but subtracting 1 (because 1676 is a Julian leap year) gives 22.
2+11+3+22=38. 38/7=5 remainder 3.
Therefore, February 23, 1676 was a Wednesday.[/spoiler]
This is very cryptic, and hard to understand why it works (vowels in a month name have significance?), but it works!

Relevant formulae for "Carrollian" method:
[spoiler=Carrollian method][/spoiler]

Doomsday
A much-simpler-to-understand-why-it-works formula comes from John Horton Conway (famous for his cellular automaton called The Game of Life[4]), and is called the Doomsday Algorithm (named so because he wanted the name to end in -day, and "Dooms-" was the first thing that popped in his head). The principle is this: "Doomsday" is the day of the week of the last day in February in any year, and many easy-to-remember dates fall on Doomsday each year.

A list of some memorable Doomsdays in a year:















MonthMemorable DoomsdaysMnemonics
January3 (common), 4 (leap)
10 (common), 11 (leap)
31 (common), "32" (leap)
the 3rd for 3 years, and the 4th every 4
repeated number (1/11) in leap years, 1 day before in common years
last day of January (but pretend January has 32 days in leap years)
February"0" (common), 1 (leap)
14 (common)
21 (common), 22 (leap)
28 (common), 29 (leap)
binary: is this year a leap year? (0=false, 1=true)
Valentine's Day
repeated number (2/22) in leap years, 1 day before in common years
last day of February
March"0"
14
last day of February (i.e. the day before March 1)
Pi Day ;)
April4repeated number (4/4)
May9"I work 9 to 5 at 7-11[5]"
June6repeated number (6/6)
July4
11
Independence Day (USA)
"I work 9 to 5 at 7-11[5]"
August8repeated number (8/8)
September5"I work 9 to 5 at 7-11[5]"
October10
31
repeated number (10/10)
Halloween
November7"I work 9 to 5 at 7-11[5]"
December12
26
repeated number (12/12)
Boxing Day (i.e. the day after Christmas Day)
All of the dates above (and many more, yet less memorable, ones) all fall on Doomsday in a year.

To calculate Doomsday, Conway presents this method:

  • Take the "anchor day" for the century from a lookup table.


    Century mod 4[6]0123
    Anchor dayTuesdaySundayFridayWednesday
    e.g. From 1900 to 1999, the century mod 4 is 19 mod 4 = 3, so the anchor day is Wednesday.
  • Add the number of "dozens" that go in the year, the remainder, and the number of 4s that go in that remainder.[7]
  • Count that many days from the anchor day. That day is Doomsday.
    e.g. For 1958, 58/12=4, remainder 10. 10/4=2, remainder 2. 4+10+2=16=2 mod 7.
    2 days from Wednesday=Friday.
From here, it's a matter of day and week counting in your head from the Doomsday and dates you've remembered.

Relevent formulae for Conway Doomsday method:
[spoiler=Conway Doomsday method][/spoiler]

"Odd+11"
Of course, there's always a better way :P , and in this instance, the processes of dividing by 12 and 4 in step 2 of BOTH mental methods so far can be simplified further for mental calculation. It's been done three times to my knowledge, but one of the easiest methods, called the Odd+11 method, is described here:

  • Let Y be the 2-digit year.
  • If Y is odd, add 11.
  • Divide Y by 2.
  • If Y is odd, add 11.
  • Take Y mod 7.
  • Get the 7's complement, i.e. subtract from 7 (unless the number is 0, in which case the 7's complement is 0).
  • The final result is your offset.
  • e.g. For 1958:

    • 58 is even, so do nothing.
    • 58/2=29.
    • 29 is odd, so 29+11=40.
    • 40 mod 7=5.
    • 7-5=2.

Relevant formulae for Odd+11 Doomsday method:
[spoiler=Odd+11 Doomsday method][/spoiler]




I have a challenge for you: take your birthday (or any other day, so long as you tell me its significance), and find the day of the week it occurred on. Use any of the methods described above, but show your work!

Example: My birthday is January 23, 2001.
Using Doomsday with the Odd+11 method:
Anchor day for 2000 = Tuesday
1 is odd, so 1+11=12.
12/2=6.
6 is even.
7's complement of 6 is 1.
Doomsday 2001 = Tuesday+1 = Wednesday.
Closest memorable Doomsday: January 31 (common year)
January 31, as well as January 31 - 1 week = January 24, is a Wednesday.
January 23 is 1 day before January 24.
Therefore, January 23 is 1 day before Wednesday = Tuesday.

Well, that's the end of my rant about my latest math geek obsession. Have fun with it, and I hope you find it useful! Also, if you have any questions, ask me and I'll explain.



[1]: I actually wrote this code back in November 2013! Wow, I guess this "obsession" of mine is old :P
[2]: Julian is referring to New Style Julian, which means that the New Year starts on January 1 (in contrast to Old Style Julian, which means that the New Year starts on March 23).
[3]: September 2, 1752 in Julian is the day before September 14, 1752 in Gregorian. The switch between calendar systems in most regions (not all) happened between those days. That's right, there's another calendar discrepancy to worry about. :P
[4]: You lost the game.
* JWinslow23 runs :P
[5]: 9:00 AM to 5:00 PM are traditional working hours, and this has evolved into the slang expression "9 to 5". 7-Eleven is a chain of convenience stores around the world.
[6]: mod refers to modular arithmetic, i.e. numbers wrapping around after a certain point. For example, 8 bit numbers on an NES or TI-84+ work in modulo 256 arithmetic, because values go from 0 to 255, and wrap around.
[7]: Yes, this step is the same as in the Lewis Carroll algorithm! Both are actually a simplification of the "true" formula, y+int(y/4) . It's hard to divide large values by 4 in your head.
#53
Games / [PC] Wal-Rush! (Scratch/Flash)
December 14, 2015, 12:33:14 AM
EDIT: The contest is over! Game is at https://scratch.mit.edu/projects/91337413/ , and you can download the source, .swf, and .exe here!

Original message:
QuoteI have decided I have a high likelihood of participating in the contest. So, I thought I'd post my game in this thread.

At the moment, this game is internally known as "WALRII". I have not decided a name or logo, but the game is going to be an endless flier where you are the walrus, and you must fly for as long as possible, avoiding obstacles and eating tons of fish :3=

I do not have a calculator screenie as of yet, as my calc is out of batteries and I thus cannot transfer the files and record until I change them. So, here is a version in Scratch that I am developing alongside the calc version. Besides fish and a scrolling background, this is also how far along I am with the calc version.



More screenies as I develop!


P.S. if I make the Scratch version public and don't submit it to the competition, would I be disqualified if I try to submit an Axe version? If not, I'll keep the Scratch project hidden.
#54
I was browsing on YouTube, and found a perfectly clean studio quality acapella of the Justin Timberlake hit "Suit & Tie", and I noticed that it had pretty nice harmonies on the chorus by Justin. Rocking bassline, too. Yeah, JT, hit those low notes :P

I thought to myself "Hey, what if I could have him singing those epic harmonies with himself...while he sings the song on top of it?" And, thus, after what couldn't have been more than an hour of work :P , here is my creation:

http://vocaroo.com/i/s00wgGk8Z9Hp

Whaddaya think? It reminds me of the harmonies Michael Jackson did with himself in the chorus of "You Rock My World".

...hrmmm... >:D
#55
I'm starting work on an old project that is LONG overdue for some work (don't expect it finished ANYTIME soon, however), and I've run into a bit of a problem.

I plan for this one (pretty huge, and it's gonna be huger) appvar to reside in the archive. It contains all the graphical information of the game inside of it. I need to know what code to do to initialize and refer to this appvar throughout the game. I've tried GetCalc("appvAPPVName",Y0) with {Y0+N} and GetCalc("appvAPPVName",Y0)->M with {M+N} , and neither work. The first gives me an error upon compiling, and the other simply gives me glitchy graphics.

So, what do I need to do? Thanks in advance!
#56
That's right, I'm making another calc game. It will be a port of none other than:


(title screen above just a mockup at this point, is not in this version of the game)

As of now, this is an extremely early pre-pre-alpha v0.0.0.0.1.0 version of the game, so do not expect anything more out of it than what it gives as of now.

For those who don't know what that is, it is an NES game featuring the mascot of 7-Up, Cool Spot, which takes on a style similar to that of Othello (Reversi for some people). You can duplicate spots on the board by placing them 1 square away, or move spots on the board by placing them 2 squares away. If there are spots of the opponent's color directly around the ending square, it flips them to your color. Fun concept, and interesting to play.

What I hope to do is to make the magic of that game (yes, even the animations Spot does during moves) appear on my TI-84+ calculator. Sure, this would be simple to program in TI-BASIC, and I may do that at one point as well, but I don't simply want it for the gameplay. I want to test myself to see if I can recreate the stunning visuals in 3-level grayscale on a 96x64 pixel screen. So far, I think I did a good job with the "spot selected" animation.


(I swear, grayscale looks fine on-calc. I don't know how to Wabbitemu settings :P )

ARROW KEYS - Move your cursor
2ND - Select spot and destination spot
CLEAR - Exit at any time

I have implemented a semi-playable 2 player version (one player takes a turn, then the other, etc). There is no spot flipping yet. Game over and "winning" is also not handled at all, so you must quit out if the board gets full or you cannot move any pieces.

Source code is in ASPOT.8xp. Compiled program is in SPOT.8xp.

With that, it's back to sprite editing and coding. Give me feedback, tell me what you think!
#57
Consoles / Toy Story NES - IPS patch to "fix" typos
August 14, 2015, 12:18:47 AM
I was on a bootlegged-ports-on-NES kick for a while, and I found Toy Story for the NES, presumably made by Ei-How Yang. The game is apparently notable for its many typos, even saying "TOY SOTRY" at one point. I was able to find 2 ROMs of this game, but one of them doesn't work on FCEUX for some reason. The one that DID work, however, had none of them. So, I tried to bring all the typos back. :P

I only have 3 comparison screenshots: 2 pre-level Etch A Sketch texts and "TOY SOTRY". I'm terrible at this game, I can never get past level 2. I got TOY SOTRY with a level select code.

Left is original ROM, right is my own hacked ROM.





Even though the ROM is god-awfully hard to find ( hint: the name is Toy Story (Unl) [hM219].nes ), I shall not provide a download for that, nor for the hacked ROM. Instead, an IPS patch to apply to said ROM to bring back all the typos (made by me) shall be available for download as an attachment. Tell me what you think! (Also, tell me if I missed anything)

EDIT: Missed a typo. DOWNSTAIRS, on the first screen, turns to DOUNTSTAIRS. Fixed, new download link is below.
#58
I can't believe I've gone about a month without posting another challenge. Time to set things right :walrii:

Hello Omnimaga/CodeWalrus/Cemetech/friends/Romans/countrymen/lend/me/your/ears, and welcome to the ninth installment of...
Code Golf: The Reboot

As you can see, I am @JWinslow23 , the guy who started this idea in the first place. You may recall my weird fifth challenge I devised, and if you do, I'm doing something just as sinister.

Don't know what code golf is? Check out this contest thread OR this really old contest thread for an explanation. Don't know what code is? Then you will not understand this website in general :P

Without further ado...

Challenge 8

Problem

Family Feud is a game show where you try to guess the most popular responses to survey questions, such as "Name something people often steal from the office to use at home", "Name something that gets hard when it gets cold", or "Tell me a famous Dennis". This, of course, has been adapted into many video game ports, including one in 1993 on the Super Nintendo Entertainment System (SNES).

Now, the SNES version has one glitch that makes the game that much more funny: as long as there are the right letters in the right order, the game counts it as correct. This can lead to some rather interesting answers being counted, as seen in

Based on this, here is your challenge: Create a program that, given a string containing a typed-in answer, and another string containing all the accepted answers (encoded in a format explained below), tells the user the answer they matched, and if no answer was matched, tells the user they got a strike.

Let me explain:

The string with the possible answers the game will accept will be encoded and interpreted as follows:

       
  • Answers will be written in uppercase letters.
  • Backslashes "\" separate multiple valid answers for a given entry.
  • Optional parts of answers are enclosed by a pair of underscores "_", i.e. "_RED_ MEAT" means that "RED MEAT" and "MEAT" are both valid.
  • A caret "^" indicates that the following character is optional, i.e. "PICKLE^S" means that "PICKLES" and "PICKLE" are both valid.
  • Spaces are usually optional (except in special cases). For the purposes of the contest, they are always optional.
  • Any double letters are always optional, e.g. "RACCOON" means that "RACCOON" and "RACON" are both valid.
Input for your program will be in the form of "ANSWER YOU TYPED IN:POSSIBLE ANSWER 1:POSSIBLE ANSWER 2:ETC". Output for your program will be in the form of either the lowest answer on the board that it matches, or "STRIKE!" if it matches no answers. To clarify, here are examples:

Input: "CLEANER FLUID:CAR\AUTO:CLOTH_ES_:_KITCHEN_ FLOOR:BODY:TOWEL^S:BATHROOM:DISH_ES_"
Output: "CAR\AUTO"

Input: "FABULOUS DIET WATER:CLOTH_ES_\SHOES:FAT\WEIGHT:BILLS:FOOD:TIME"
Output: "FOOD"

Input: "CODE GOLF CONTEST EIGHT:SOCK^S\HOSE\STOCKINGS\NYLONS:PURSE^S\POCKETBOOK\BAG:POLISH:LACES"
Output: "STRIKE!"


If any more clarification is needed, contact me. I'll try not to give you COMMANDS FOR US INVASION... (whoops, I mean CONFUSION :P )

Scoring

All non-calc languages will be scored with this counter.
Assembly programs will be scored on binary size (minus the header), and TI-BASIC and Axe will be scored on on-calc source size (again, minus the header). For Axe, the entire first line (for example, ".PROGNAME") does not count.

Submission

PM me over on Omnimaga, Cemetech, or CodeWalrus with the code, or make an unlisted YouTube video and PM me the link. (If you take the latter option, then congrats for you :P )

Good luck! I wanna see if Feud come up with clever answers!

SysRPL



RankUserSizeDate
13298220.5 (I swear)Jul 29 2015 05:44:37 pm

Java



RankUserSizeDate
13298371Jul 30 2015 04:47:10 pm

C



RankUserSizeDate
13298334Jul 30 2015 04:47:10 pm

Language Ranking





RankLangUserSizeDate
1SysRPL3298220.5 (I swear)Jul 29 2015 05:44:37 pm
2C3298334Jul 30 2015 04:47:10 pm
3Java3298371Jul 30 2015 04:47:10 pm
#59
I'm working more and more on my little side project (hope you know what it is), and I figured "Hmm...how about be fancy and make a graphic for how difficult each one will be? (-_(//)); "

So here they are. All in a row, all of the graphics. (they will get out of sync, they're differently timed)



I made them myself. The space on the bottom is to add a description like "Easy As Cake" or "Do Not Attempt". What do you all think?
#60
Introducing, a first look at what I want to make into a full game: Bejeweled 84+!

Click on the image to jump to the latest version!



As of now, it just loads the graphics, creates a random board with no match checking (yet), and displays that board.

If anyone's wondering how I did all that, one word: textsprites.

Download attached. Tell me what you think!

EDIT: Source code for the curious (processed with TokenIDE):
ClrDraw
AxesOff
ZStandard
104→Xmax
⁻72→Ymin
ZInteger
For(A,0,74
If A<11
Text(57,A+15,sub("?Y°﹢.﹢°Y?  ",A+1,1
If A<21
Text(52,A+10,sub("?Y'([i]ÎQJ'['JQÎ[i]('Y?  ",A+1,1
If A<25
Text(47,A+8,sub("﹢[s]!!]:XX.χ[i][i][i]χ.XX:]!![s]﹢  ",A+1,1
If A<28
Text(42,A+8,sub("  .Jẋûí[e]|u([s]:[s](|u[e]í[e]íJ.   ??  ",A+1,1
If A<41
Then
Text(37,A,sub("''?    Y'°°Y]|uQYYY? Y'°°°^Y'°°'Y1|uQYYY?  ",A+1,1
Text(32,A,sub(" plotsquare[[2JQ!Jplotsquare[e]plotsquareJ[e]plotsquareplotsquare[e]plotsquareJ plotsquare['??YÎJplotsquare[e]plotsquareplotsquare [e]plotsquareplotsquareûplotsquare2  ",A+1,1
Text(27,A,sub("JJJJJJJ.              ....          plotsquareí﹢  ",A+1,1
End
Text(5,A+11,sub("[[JJ[i]Q' 'QplotsquareJJJJ JJJplotsquareQ' 'QplotsquareJJJJ  YQplotsquare('(plotsquareQY  'QplotsquareJJJJ 'QplotsquareJJJ 'QplotsquareJJJJ [[JJplotsquareQ'  ",A+1,1
Text(0,A+11,sub("[[]]X[( |u[Î]]]?     [[ |u[Î]]]? [[.     .[[ |u[Î]]]? [[     |u[Î]]]? [[??Y[|u  ",A+1,1
End
{11,21,36,56,71,77
For(A,1,6
Line(Ans(A),0,Ans(A)+4,0
End
{31,42,51,62
For(A,1,4
Line(Ans(A),0,Ans(A)+1,0
End
⁻14
Line(2,Ans,36,Ans
Line(⁻Ans,2Ans,24,2Ans
{2,⁻Ans,26
For(A,1,3
Line(Ans(A),⁻22,Ans(A)+10,⁻22
End
26
Line(12,⁻24,12,⁻Ans
Line(Ans,⁻24,Ans,⁻Ans
⁻16
Line(0,Ans,0,⁻20
Line(38,Ans,38,⁻20
Line(⁻Ans,⁻12,19,⁻13
13
Line(22,⁻12,19,⁻Ans
Line(40,⁻Ans,40,⁻61
{1,15,37,15,1,21,37,21,Ans,23,25,23,Ans,27,25,27,15,Ans,23,Ans
For(A,1,10
Pt-On(Ans(2A-1),⁻Ans(2A
End
⁻12
Line(41,Ans,92,Ans
Line(41,Ymin,92,Ymin
Line(42,Ans,42,Ymin
Line(92,Ans,92,Ymin
DelVar [A]{8,8→dim([A]
For(A,1,8
For(B,1,8
randInt(1,7→[A](A,B
StorePic 1
For(C,0,7
Text(7+6A,38+6B+C,sub(sub("[[i][[[(ẋXẋ(+([(+(X]X(°û[Q°J|u[|uJ(X[i][(",5[A](A,B)-4,5)+"   ",C+1,1
End
RecallPic 1
End
End
Pause
#61
Click here to see a theme song for something I plan to do. It's for a series called "Glitch Busters".

This song was actually made by a TI-84+ calculator: I entered randInt(1,7) and kept pressing ENTER. The numbers it gave me corresponded to do, re, mi, fa, so, la, and ti on the solfege scale (basically, notes 1 through 7 on a key). I chose the key of the song and made some minor changes to the music so it didn't sound all discordant and random. I also added a measure-long end.

...so...yeah. I'll tell you when the first episode comes out, I guess.
#62
Here's some quick pixel art I did of some Bejeweled graphics. One side is in color (not necessarily CSE or xLIBC pallete) and one side is in black and white. I might use this for a Bejeweled clone of my OWN! (and I lent these to @unknownloner for something he wants to do for fun)



Tell me what you think!
#63
Everybody back off, I'm taking back this contest :walrii:

Hello, Omnimaga/CodeWalrus/Cemetech/my girlfriend/whoever is seeing this right now, and welcome to the fifth installment of...
Code Golf: The Reboot

As you can see, I'm neither @pimathbrainiac NOR @c4ooo , NOT EVEN @Juju , but I am the original @JWinslow23, the one who came up with this silly idea in the first place almost a year ago. However, don't expect me to host next time, or basically for the next few competitions. How it works is, there's this cycle of hosts that will successively host this competition, starting with pimath. Somewhere in that loop, there's yours-truly, with a challenge on deck to give you. This is that.

Don't know what code golf is? Check out this contest thread OR this really old contest thread for an explanation. Don't know what code is? Then you will not understand this website in general :P

Without further ado...

Challenge 5

Problem

You, a person with a lisp, go to your car, and unlock it with the keys...but there's one problem...you don't have your keys with you.

"Oh no...I lotht my keith! Where'th my car keith?" you exclaim in nervousness. You know that you have more than one pair, but you can't for the life of you find any of them.

Suddenly, you remember...each of your keys had a number on it 10 or above, each of which you call a Keys Number, or "Keith Number". Now, these numbers have a special property:

For a number N with D digits, if you arranged the digits to make a Fibonacci-like sequence where the digits of N are the first few terms, and each number is the sum of the D preceding digits, it would have N somewhere in the sequence.

Examples:

14 is a Keith Number:N = 14
D = 2

1 + 4 = 5
4 + 5 = 9
5 + 9 = 14
197 is a Keith Number:N = 197
D = 3

1 + 9 + 7 = 17
9 + 7 + 17 = 33
7 + 17 + 33 = 57
17 + 33 + 57 = 107
33 + 57 + 107 = 197
1337 is NOT a Keith Number:N = 1337
D = 4
1 + 3 + 3 + 7 = 14
3 + 3 + 7 + 14 = 27
3 + 7 + 14 + 27 = 51
7 + 14 + 27 + 51 = 99
14 + 27 + 51 + 99 = 191
27 + 51 + 99 + 191 = 368
51 + 99 + 191 + 368 = 709
99 + 191 + 368 + 709 = 1367
Your mission: Help yourthelf find your keith!

Make a program that, given an integer input 10 or above, will tell you whether or not it is a Keith number.

Any output is permitted, but the output must be different for a truthy and falsy result, and the two different outputs must be specified to me so I know the difference. Finally, if the size of the program is exactly 1337 bytes...then that'd be kinda cool... :P

Scoring

All non-calc languages will be scored with this counter.
Assembly and compiled Axe programs will be scored on binary size (minus the header), and TI-BASIC will be scored on on-calc source size (again, minus the header).

Submission

PM me over on Omnimaga, Cemetech, or CodeWalrus, or tell my girlfriend and have her dictate the code to me. (If you take the latter option, I will give your code a -90% point bonus. I'm serious.)

Good luck! Remember, don't steal code from others; I want everyone to not fib and not cheat.

TI-BASIC





RankUserSizeDate
1@lirtosiast43Jul 01 2015 02:25:25 pm
2@PT_43Jul 02 2015 01:24:20 pm
3@mr womp womp97Jun 30 2015 09:13:00 pm

Lua



RankUserSizeDate
1@Adriweb152Jun 30 2015 02:06:20 am

Javascript



RankUserSizeDate
1@Adriweb112Jun 30 2015 02:06:20 am

Java



RankUserSizeDate
1@c4ooo190Jul 01 2015 12:32:49 pm

Ruby



RankUserSizeDate
1@Juju150Jun 30 2015 04:57:53 pm

Python



RankUserSizeDate
1@Cumred_Snektron83Jul 01 2015 10:37:07 am

Language Ranking








RankLangUserSizeDate
1TI-BASIC@lirtosiast43Jul 01 2015 02:25:25 pm
2Python@Cumred_Snektron83Jul 01 2015 10:37:07 am
3Javascript@Adriweb112Jun 30 2015 02:06:20 am
4Ruby@Juju150Jun 30 2015 04:57:53 pm
5Lua@Adriweb152Jun 30 2015 02:06:20 am
6Java@c4ooo190Jul 01 2015 12:32:49 pm

As I am having trouble with formatting, everyone's code has been put in a Pastebin paste here.
#64
Hey there.

Got your attention? Good.

I'd like to make you an offer you can't diffuse.

Are you tired of Student Council members that don't do anything? Sick of them using stupid puns to get their point across? Don't you just hate it when people desperately ask you to vote for them?

Well, I have good news for you.

If you vote for Ida Nomuch in the upcoming Student Council election...you'll still get all of that... :-\

Ida Nomuch. The Right Choice, Because My Opponent Is The Left One TM .

Her main promise is to cut the deficit in half. She projects that in just 5 years, it will turn into just "def" and "icit".

Among her other promises she will fulfill are:


  • Converting all grades to metric.
  • Placing a districtwide ban on any paper or test that uses the word "the" more than twice.
  • Making the state of Alaska the school mascot. The suit must be life sized.
  • Refuses to see any students left behind.
    Or their right behind. In fact, no student should be showing any of their behinds.
  • Addition of new after-school activities such as dust-collecting, spitball-target-practice and straw-javelin-throwing, and after-school-activity-naming.
  • Painting the entire school light orange.
  • No wait, how about yellow?
  • And rename it Lower Middleton High School.
  • Waitwaitwait this is wrong. How about purple with off-red sprinkles?
  • Addition of new lunch foods such as obvious-meat, organized-Joes, and 5 mandatory servings of iPhone-that-accidentally-fell-in-a-toaster.
  • Requiring at least a college degree to get a high school diploma.
  • ...and much more!

You can count on Ida Nomuch...that is, if she can support your weight long enough for you to count to 50.

So go ahead and cast your vote for the candidate that you know is right because she's the only one that's left:
Ida Nomuch.

Print off this poster. Distribute it around your school. Post it on walls for all to see. No, I'm serious, I want you to do this.


Ida Nomuch, but what I do know is that I might win.

Paid for by the Noah Lott Foundation
#65
Other / CODEWALRUS anagrams
June 01, 2015, 01:31:29 AM
In caps in each of these sentences are the letters in CODEWALRUS, but not necessarily in that order.


  • We just recently went to Disney World. Our favorite attraction was the D W CAROUSEL.
  • The community gives Texas Instruments A RUDE SCOWL. <_<
  • Quick! We need to prepare for the impending OWL CRUSADE! :owlrii:
  • Before we had a walrus overlord, A CROW LED US.
  • OW! CRADLE US! We got hurt by a SO RUDE CLAW!
  • Can we borrow a new TI-84+? Our cat CLAWED OURS.
  • Warning: Codewalrus isn't entirely profanity-free. We very well COULD SWEAR.
  • If we ever run out of clothes, we try to WEAR CLOUDS. But since they're made of water, it doesn't work so well. :P
  • Let us watch as A CROW DUELS to see which crow gives LOUDER CAWS.
  • We here at Codewalrus would like to give to a charity for a WORLD CAUSE.
  • Do you see what I'm doing here? Codewalrus as A WORD CLUES us to find important secret messages.
  • We here at Codewalrus are trying to illustrate how ocean sponges expel water. To do this, we DREW OSCULA. (-_(//));
  • As part of our military defenses, we USE COLD WAR weapons. We LOWER A SCUD into a cannon and fire it.
  • Years ago, we had a WALDO CURSE put on us. Now we can't even find the guy. :-\
  • Two of our members want to buy new houses, but won't actually pay unless a condition is fulfilled. They have a DUAL ESCROW.
  • While we were working with a screwdriver on a big project, it broke, and out popped A LOUD SCREW that made a sound that WOULD SCARE people that heard it.
  • In the event of a food shortage, we will USE COW LARD to feed the public.
  • In making their case in court, the attorneys appointed to Codewalrus SOURCED LAW.
  • Over here, we have a SAD COW RULE: no one shall make a cow hurt by feeding it LASER CUD. OW! That's just wrong!
  • Some excited Codewalrus fans made Codewalrus T-Shirts and hats, and in essence they WORE US, CLAD in all their walrii gear. :walrii:
  • Occasionally, we don't check the temperature of the water before we step in, and WE SCALD OUR flippers and yell "CRUD!" WE ALSO get sunburned, if the water's hot enough. :'(
  • Boredom hit us one day, and a can of COLA DREW US to organize a curling tournament where WE CURL SODA cans. (shoutout to the Canadian walrii ;) )
  • Besides a curling tournament, we also have a demolition derby where CARS DUEL. OW!
  • It looks like Codewalrus has a DUAL CREW, SO the cloning machine we tested on the original 5 at the lab must have worked! :D
  • OW! SAD, CRUEL people used to hunt walrii for a living. How terrible. :'(

I'll add more as I think of them. What do you think?
#66
Contests / Bitty Bird!
May 12, 2015, 02:55:57 PM
Have you ever thought Flappy Bird was too easy? Are you easily able to get a score of at least 5 every time you play? Have you been playing so much that you sold all your possessions for some reason in order to keep playing it?

Well, now there's hope :P

Introducing: Bitty Bird! (updated screenie; access old screenie by clicking here


Bitty Bird packs all the fun and frustration of Flappy Bird into the barest resemblance of a game you can make it into :P . It's also written entirely in TI-BASIC, so the minimalist aspect really shines there ;) .

Press UP to flap your less-than-a-subpixel-long wings, and get through as many of  the definitely-metallic-and-green pipes as you can before you crash! At the end, it shows you your score as individual letters and digits (i.e. a score of 14 would be S C O R E 1 4 flashing on the screen). You can press CLEAR to quit at any time.

It has two programs, BTTYBIRD and BTTYDRAW. Both are needed, and you run the game by running BTTYBIRD. You can download them after the contest, otherwise I'm disqualified :P right below, as attachments to this post.

Planned features:

  • Cramming the game in 2x2 pixels Not a chance
  • Coloration of the bird, sky, and pipes I guess the pipes are already green
  • Physics so realistic your eyes hurt It's pixels, not hi-def 64-bit graphics
  • insert funny joke here Nope :P
  • Difficulty settings

Please give me feedback! Thanks in advance! :3=
Powered by EzPortal