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.


Messages - JWinslow23

Pages: 1 ... 37 38 [39] 40
571
TI Z80 / Re: Barebones Mastermind Game
« on: November 25, 2013, 09:29:55 am »
Now that I know what you mean, I will fix it.

EDIT: I found the problem! Alternate download coming soon, but for now:
1. Replace DelVar TDelVar Gint(10rand(4→L1 with DelVar TDelVar GDelvar Rint(10rand(4→L1
2. Replace Repeat T=14 or K=45 or 4=sum(L1=L2 with Repeat T=14 or K=45 or R=4
3. Replace sum(L1=L2 with sum(L1=L2→R
4. Replace Output(1,1,"YOU "+sub("WIN!   LOSE...",1+7(T=14),7 with Output(1,1,"YOU "+sub("WIN!   LOSE...",8-7(R=4),7
5. Replace DelVar GDelVar KDelVar TDelVar XDelVar L1DelVar L2ClrHome with DelVar GDelVar KDelVar RDelVar TDelVar XDelVar L1DelVar L2ClrHome

Eats up an extra variable, but it has the same size!

572
TI Z80 / Re: Barebones Mastermind Game
« on: November 24, 2013, 08:57:07 pm »
What do you mean by that? Give me an example.

573
Introduce Yourself! / Re: Hey, what's up?
« on: November 24, 2013, 04:06:21 pm »
Oh, good, give me more peanuts! It's not like I have anything better to do than to eat peanuts all day, and I don't have anything important to do, like actual programming!  <_<

Sorry, too many peanuts. Also, take a look at my Mastermind thread!

574
TI Z80 / Barebones Mastermind Game
« on: November 24, 2013, 03:17:57 pm »
This isn't TI|BD's [tibd]Mastermind[/tibd] game!

I made a version of Mastermind in 439 bytes (including the name, MSTRMIND). It uses numbers 0-9, keypresses instead of Input for inputting numbers, and it shows red and white pegs instead of right/part-right/wrong numbers.

I got the white peg formula from Wolfram Mathworld. This is it, as used in the program:



ci is how many times color i was in the code, and gi is how many times it was in the guess. r, of course, is how many red pegs thrown out.

The file is attached. You press the number pad to input numbers, ENTER to guess it, and CLEAR anytime to quit. A half-second after guessing, you will see the change in red and white pegs. You get 14 guesses.

Give tips for even more optimization, if possible!

575
Introduce Yourself! / Re: Hey, what's up?
« on: November 24, 2013, 02:08:00 pm »
Peanuts are a "tradition", huh? Like the "tradition" on 4chan where if you dare speak the name CandleJack, you di

576
Introduce Yourself! / Re: Hey, what's up?
« on: November 24, 2013, 11:10:25 am »
Thanks for the peanuts?

I only have a Langton's Ant in Axe, but I am hoping to learn how to move sprites, and backgrounds.

Also, AssemblyBandit, I know now why you aren't named AxeBandit or BASICBandit.  :w00t:

577
TI Z80 / Re: Candy Wars
« on: November 23, 2013, 08:54:34 pm »
As for AssemblyBandit, there is a shorter way. It only uses Str1 and X.

Code: [Select]
"DAYS:
For(X,1+int(log(D)),1,-1
Ans+sub("0123456789",1+int(10fPart(D/10^(X))),1
End
Ans -> Str1

The Menu( command works the same, though. And I didn't know it worked like that!

As for ClrDraw, I just made a new thread introducing myself. Also, I am Josiah W on TI-Basic Developer, so check me there, too.

578
Introduce Yourself! / Hey, what's up?
« on: November 23, 2013, 08:41:03 pm »
Hello!

I am an intermediate TI-BASIC programmer, hoping to learn Axe (I have the syntax guide at hand). You have probably seen my Cookie Clicker thread, my Shutdown game, and my recent Candy Wars game. I hope to learn more advanced techniques. I also have a small 500-byte Mastermind program (doesn't use Input, uses keypresses). Code coming soon!

579
TI Z80 / Re: Candy Wars
« on: November 23, 2013, 04:24:00 pm »
I'm glad to get that kind of positive feedback from a programmer of your fame. Thank you.

I wouldn't know how to display the day in the main menu and make it look pretty. I mean, why don't you try to do that with the Menu( command? I don't think you can.

About losing money, that was my translation of "YOU WERE MUGGED IN THE SUBWAY" from the original. The loss formula was 2int(M/3), and I used that in the game.

Great idea about the bully, but I won't do the brass knuckles thing.

Once again, thanks for the feedback!

580
TI Z80 / Candy Wars
« on: November 23, 2013, 01:42:16 pm »
I made a quick Drug-Wars clone called Candy Wars.

I'm lazy, so I'll just copy-paste the readme:
Code: [Select]
   _____                _    __          __
  / ____|              | |   \ \        / /
 | |     __ _ _ __   __| |_   \ \  /\  / /_ _ _ __ ___
 | |    / _` | '_ \ / _` | | | \ \/  \/ / _` | '__/ __|
 | |___| (_| | | | | (_| | |_| |\  /\  / (_| | |  \__ \
  \_____\__,_|_| |_|\__,_|\__, | \/  \/ \__,_|_|  |___/
                           __/ |
                          |___/

                       by Josiah W.

##############
#Requirements#
##############

* 2,274 bytes of RAM for the game AND variable usage.
* (recommended, but not required)
No content in L1, L2, A, D, F, M, or X. These variables
are overwritten by CANDYWAR.8xp.

##############
#Installation#
##############

* Transfer CANDYWAR.8xp to your calculator. Then, run
it as a BASIC program on the homescreen.

#############
#How to Play#
#############

* Candy Wars is a Drug-Wars type game, with obvious
changes.
* Press ENTER to get past the title screen.
* Press UP and DOWN to go through menu options, and
ENTER to confirm your selection.
* You start with $10,000. Your goal is to buy and sell
candy to get over $50,000 to buy a new bike in as
little time as possible.
* These are the high and low values for candy prices.
+---------+-----------+
|Candy    |Price Range|
+---------+-----------+
|Gum      |$15-50     |
+---------+-----------+
|Lollipops|$50-100    |
+---------+-----------+
|Reeses   |$100-500   |
+---------+-----------+
|Kit Kat  |$500-1000  |
+---------+-----------+
|Twix     |$1000-5000 |
+---------+-----------+
|Hersheys |$5000-10000|
+---------------------+
* Be warned...health crazed parents might take some of
your candies at any time.
* Sometimes, you can get great deals on candies. Be on
the lookout for those kinds of deals!

#################
#Tips and Tricks#
#################

* Try to take advantage of as many deals as possible.
* Sell as many candies as you can, if you don't want to
get caught by health crazed parents.
* When in doubt, perhaps buy a Hersheys.

###################
#Legal Information#
###################

* This program is freeware, it shall be distributed
freely. Do not sell this game, or claim it as your own.
If you do distribute this program, credit me for it.

#########
#Credits#
#########

* Jonathan Maier for making the original TI-82 Drug Wars.
* gist.github.com/mattmanning/1002653 for having the
original TI-82 Drug Wars code.
* Ryan Bowen ([email protected]) for making an
excellent Candy Wars game, inspiring me to make mine.

#################
#Version History#
#################

v1.0: Initial release

The file is attached.

What do you think of the game? Might need optimization, but how good is the game?

581
TI Z80 / Re: Shutdown (a clone of Lights Out Deluxe)
« on: November 17, 2013, 07:10:27 pm »
Most people don't feel like manually copy-pasting the code in SourceCoder, let alone typing it manually on their calc, then creating a 8xp file, when the author could have provided a 8xp himself.
Works for me! .8xp coming soon!

EDIT: Sorry for the bump, but I am working on an Axe version. The discussion is here, I guess. I just need a debounce routine (and light toggling, once that's done) and it will be ready!

582
TI Z80 / Re: Shutdown (a clone of Lights Out Deluxe)
« on: November 15, 2013, 12:57:08 pm »
I see there has been much talk about labels in BASIC. I don't understand, however, that nobody has voted in the now-included poll. ???

Because there are only two labels, one to end the game and one at the very start, it wouldn't make much of a difference there. The delay of getting back to the start is nonexistent, and the delay of getting out of the program exists, but it's small. The last one doesn't matter, though, it's only getting out anyways.

583
TI Z80 / Re: Shutdown (a clone of Lights Out Deluxe)
« on: November 11, 2013, 01:27:16 pm »
On a scale of 1 to 10, how would my game be rated?

584
TI Z80 / Re: Shutdown (a clone of Lights Out Deluxe)
« on: November 11, 2013, 01:04:15 pm »
Hmm, try to avoid double posting please. You have an edit and a delete button at the top of your post.
Sorry. I failed to notice the EDIT button.

EDIT: Maybe because it was labelled MODIFY.

585
TI Z80 / Re: Shutdown (a clone of Lights Out Deluxe)
« on: November 11, 2013, 01:02:28 pm »
When's that ??? They also have that memory bug

Note, he said OFTEN, not ALWAYS. That memory bug only happens if you escape out of a loop with a Lbl, and I always try to prevent that.

Pages: 1 ... 37 38 [39] 40