Search found 310 matches

by GeorgeMcGinn
Sun Apr 14, 2019 6:56 am
Forum: Other topics
Topic: Update to Smart Basic?
Replies: 17
Views: 1032
Flag: United States of America

Re: Update to Smart Basic?

I have Code I need to finish testing that will allow SmartBASIC code to be downloaded from GITHUB, SOURCEFORGE, even from StackExchange (while the last service isn't for storing code, it does work when I go after code snippets. I use this to download something in Python and will convert it to SB) I'...
by GeorgeMcGinn
Thu Mar 28, 2019 8:25 am
Forum: Lessons on Programming
Topic: Smart BASIC Programming. Lesson 3
Replies: 7
Views: 4682
Flag: United States of America

Re: Smart BASIC Programming. Lesson 3

***** POST MOVED TO OTHER TOPICS *****
by GeorgeMcGinn
Thu Feb 21, 2019 4:11 am
Forum: BASIC programs
Topic: The game of Hamurabi with a new coat
Replies: 20
Views: 7573
Flag: United States of America

Re: The game of Hamurabi with a new coat

Good job on the game and interface. I like the version of this game. It is always interesting in how people today see the programs that basically started the online game industry and their take on it. Like with your Risk game, this will be one of the games I'll be playing (even after mine is release...
by GeorgeMcGinn
Wed Feb 20, 2019 3:52 am
Forum: BASIC programs
Topic: The game of Hamurabi with a new coat
Replies: 20
Views: 7573
Flag: United States of America

Re: The game of Hamurabi with a new coat

You can grab the scoring routines from my program. It even calculates the number of people who wants you dead if your bad enough! I spelled out all variables and routine labels as following old code can be difficult. Due to memory issues, sometimes programmers would reuse a variable for something di...
by GeorgeMcGinn
Tue Feb 19, 2019 3:40 pm
Forum: BASIC programs
Topic: The game of Hamurabi with a new coat
Replies: 20
Views: 7573
Flag: United States of America

Re: The game of Hamurabi with a new coat

I loaded the game, but I'm fighting a ton of syntax errors. I first fixed all the comments that were put after a label (action: ' comment was here) and one after a THEN where the next line was a multi-statement line. Now I'm getting Syntax errors on the BUTTON statements. I've been replacing title w...
by GeorgeMcGinn
Tue Feb 19, 2019 11:20 am
Forum: BASIC programs
Topic: The game of Hamurabi with a new coat
Replies: 20
Views: 7573
Flag: United States of America

Re: The game of Hamurabi with a new coat

I like your version of Hammurabi game. It has some of the features that I'm putting into mine, plus I'm adding a lot more decision making processes. However, in the three original source codes that I provided, plus in the one that I am currently coding, the original authors decided that you should e...
by GeorgeMcGinn
Sun Feb 17, 2019 7:09 pm
Forum: BASIC programs
Topic: Old school Hamurabi
Replies: 4
Views: 2504
Flag: United States of America

Re: Old school Hamurabi

EDITED: 7:05pm local time When the game was originally written, the article stated you had to learn to play the game by playing it. I'll provide you one hint. You need 20 bushels per person to feed them. So for 100 people, you need 2000 bushels (100 * 20). In the second year, if you get 19 more peop...
by GeorgeMcGinn
Sun Feb 17, 2019 7:00 pm
Forum: Other topics
Topic: Decimal to Hex Function return
Replies: 14
Views: 854
Flag: United States of America

Re: Decimal to Hex Function return

No need for accolades 🤡 The one benefit of learning to do it long-hand is if a language does not have the HEX statement. One of TechBASIC's sample program had a serious bug because it was coded the hard way, and the only way I convinced him was to use his built-in HEX function! I only mentioned it f...
by GeorgeMcGinn
Sat Feb 16, 2019 11:31 pm
Forum: Other topics
Topic: Decimal to Hex Function return
Replies: 14
Views: 854
Flag: United States of America

Re: Decimal to Hex Function return

Why does everyone like doing things the hard way?

HEX$ (N)
returns hexadecimal representation of integer number [n]. Number should not be negative or complex.
PRINT HEX$(255)

This code does the same thing with very little risk for bugs:

Code: Select all

FOR X=0 TO 255
    PRINT HEX$(X)
NEXT X
by GeorgeMcGinn
Tue Feb 12, 2019 6:13 pm
Forum: BASIC programs
Topic: Old school Hamurabi
Replies: 4
Views: 2504
Flag: United States of America

Re: New school Hamurabi

Here I have changed the game so that it's more modular, I have expanded the variable names so they are understandable, and it should me easy to upgrade. Planned upgrades are: More natural and human disasters (like storms, people leaving and dying, insect pestilence before harvest, etc) Graphical Use...