Friday, August 28, 2020

Correction

 This is just a correction saying that the link in Suggestions and ideas (not IDEs) should have been https://www.tutorialspoint.com/codingground.htm. Sorry about that. 

Monday, August 24, 2020

And the results are...

 So. It has been quite a while since I posted on my blog. I have decided I am not only going to post stuff about coding and cars, although I will have quite a bit of content about coding and cars still.

    Here's what has been going on this week.  Nothing much.  OH WAIT, I FORGOT!  There is a wunkahead in our house.  Wunkahead is a dog from the ICAN program.  If you want to know what ICAN is, ask Penny.  She will gladly tell you.  Don't get me wrong, wunkahead (aka Nugget) is a great dog.  She just is, well, a wunkahead.  😜

Coding... I guess you could say I figured out the IDE?  I still have no clue how to get all the packages to work, but I have found out that using an IDE helps make it easier to code.

Today's code:

import random

import time

#Magic 8 ball

#Variables

Answers = ['It is certain.', 'Yes.', 'No.', 'I will have to mull it over.',

'Never.', 'Definitely.', 'Of course.', 'Of course not.', 'I think so.', 'Maybe later.',

'Yes.', 'Never.', 'Mmm.', 'No.']

Answer = random.choice(Answers)

print('I am the magical 8 ball.')

time.sleep(0.5)

Question = input('Give me a quesion.')

print('...')

time.sleep(1)

print(Answer)

time.sleep(3)

Also, the results are... 50% of people have coded, and 50% of people haven't coded.  

I'll be back.

Friday, August 14, 2020

IDEs again?

Yes, I am going to talk about IDEs yet again.  The reason for this is because I think I am starting to get further along with mine!  I am continuing to download the packages, and learn further what IDEs are!  Apparently, without all the packages, IDEs are just text editors.  But now I think I am getting the right packages.  Soooooo... why isn't it working?  Who knows.  All the error messages say stuff like "Your filgum is not engaged in the nemearaton."  What?


By the way, I saw a really cool old Porsche today.  It was probably 1960s - 70s.  And it was in really good condition!

today's code:

import random

import time

number = random.randint(1,10)

print('Guess the number!')

time.sleep(0.3)

guess = input('What is your guess?\n')

time.sleep(0.5)

if guess == number:

    print('You win!')

else:

    print('Try again.')

Also, I am taking a poll!  My question is: do you code at all?  And if so, what language do you use?  Just post your answers in the comments section!  Please participate!

Wednesday, August 12, 2020

Suggestions and Ideas (not IDEs)

Hello, and welcome to my latest post!  In this post, I will give suggestions on things to get on your computer or websites to look up, as well as some ideas (again, not IDEs) for what to do with these gadgets.  Don't worry, the daily, or postly, code will come out too.

  • If you are looking for a good online IDE, okay, so I am talking about an IDE, I suggest https://wwww.tutorialspoint.com/codingground.htm.  Is has all different kinds of coding languages, and gives you a sample of each one.
  • If you are a beginner and wondering what coding language you should use, the answer is most definitely Python.  It has pretty easy to understand code, and you can do some cool stuff with it.
  • If you want to get some cool games on your computer, get Steam.  Steam itself is free, but almost all the games cost money.  What ever.  The games are awesome.
  • If you are stuck trying to code on Python shell, DO NOT JUST LOOK IT UP!!!  People who post things on websites like tutorialspoint or stack overflow are coding gurus who have fancy IDEs and somehow know how to use them.  I would much rather ask my dad or somebody else who knows about coding.
  • If your stuck trying to find a game on steam, I suggest Roller Coaster Tycoon Deluxe.  It's cheap at only six dollars, and while I have never gotten it on Steam, I have had it before and it was a lot of fun.
Well, I hope that helps, and if you have any more questions, just post them in the comments section.
Here is today's code:
import random
exitchoice = "fd"
while exitchoice != "EXIT":
    print("It is a dark and stormy night.")
    print("You, seeking shelter, see an old castle and enter it.")
    print("You walk into a room with three doors.")
    playerchoice = input("Choose one, two, or three...")
    if playerchoice == "1":
        print("You walk into a room.")
        print("There is an old, broken down bridge over a pool of molten lava.")
        print("It looks crossable...")
        print("There is also another door...")
        print("You can either:")
        print("1)Cross the bridge, or 2), go through the door.")
        lavachoice = input("choose one or two...")
        if lavachoice == "1":
            print("You start across the bridge")
            print("Suddenly, the bridge snaps into and you tumble down into lava.")
            print("GAME OVER, YOU LOSE.")
        elif lavachoice == "2":
            print("You go through the door. It is an exit from the castle. The weather has cleared up, and you are ready to go on with your journey.")
            print ("GAME OVER, YOU WIN!")
        else:
            print("--------------------------------------------------------------------")
            print("                       INVALID INPUT")
            print("--------------------------------------------------------------------")
    elif playerchoice == "2":
        print("Inside the room there are ten doors.")
        print("A sign tells you that you must enter one of the ten doors, and only one leads to safety.")
        print("The rest contain a deadly gas.")
        tendoorchoice = int(input("Which do you choose?"))
        if tendoorchoice == random.randint(1,10):
            print("You escape from the castle, good job!")
            print("GAME OVER, YOU WIN!")
        else:
            print("The room fills with deadly gas.")
            print("GAME OVER, YOU LOSE.")
    elif playerchoice == "3":
        print("You go into the room and find a sleeping dragon.")
        print("the dragon has a lot of gold behind him...")
        print("If you could get that gold, you would be rich!")
        print("You can either:")
        print("1)Try to steal the gold, 2), sneak around the dragon or 3), try and fight the dragon")
        dragonchoice = input("Choose one, two or three...")
        if dragonchoice == "1":
            print("The dragon wakes up and eats you.")
            print("GAME OVER, YOU LOSE.")
        elif dragonchoice == "2":
            print("You escape from the castle, good job!")
            print("GAME OVER, YOU WIN!")
        elif dragonchoice == "3":
            print("The dragon fries you to a crisp.")
            print("GAME OVER, YOU LOSE.")
        else:
            print("-------------------------------------------------------------------")
            print("                       INVALID INPUT")
            print("-------------------------------------------------------------------")
    elif playerchoice == "banana":
        print("You win if you like bananas!")
        print("GAME OVER, YOU WIN!")
    elif playerchoice == "MEEF":
        print("ZZZZZZZ....")
        print("GAME OVER, YOU LOSE")
    elif playerchoice == 'qwerty':
        print('Uiop hi you win.')
    elif playerchoice == 'secret door':
        print("You find a room full of gold.")
        print("GAME OVER, YOU WIN!")
    else:
        print("-------------------------------------------------------------------")
        print("                       INVALID INPUT")
        print("-------------------------------------------------------------------")
    exitchoice = input("Press enter to play again, or type EXIT to leave").upper()
    #THIS CODE IS SUBJECT TO CHANGE!
        
          

    
                              
    
            
Also, a reader saw this really cool car, so here it is!

Tuesday, August 11, 2020

The problem with IDEs

In my last post, I said I got an IDE.  I also said I thought it would make my work easier.  This was not to be.  I have spent probably about an hour now trying to figure out how to use it.  I started out by downloading a package that should have made it so I could use Python with the IDE.  But nooooooo, I had to download about a million other packages to go along with the one I got.  Not that I could figure out how to run the code anyway.  So that is my experience with IDEs. they are hard to use.

    Also, starting with this post, I am going to give you a sample of code to try.  If you have Python already, just try it on that.  If not, you can get Python at Python.org or try it out on an online IDE.



#This game created by yahoo0406 (Cedric Rundle)

import time

import random

e = ''

while e != 'e':

    print('Welcome to Rock, paper and scissors created by yahoo0406!')

    print('In this game, you try and outguess the computer by selecting rock paper or scissors.')

    time.sleep(0.5)

    names = ['George', 'Clare', 'Daryn', 'Cedric', 'Penny', 'Ben', 'Jess', 'Jack', 'Billybob']

    print('Your opponent is', random.choice(names))

    time.sleep(0.5)

    rpsc = input('Rock, Paper or scissors?')

    print('Rock,')

    time.sleep(0.5)

    print('Paper,')

    time.sleep(0.5)

    print('Scissors,')

    time.sleep(0.5)

    print('SHOOT!')

    time.sleep(0.5)

    comchoice = random.randint(1,3)

    if comchoice == 1:

        print('Your opponent chose rock.')

        time.sleep(0.5)

        if rpsc == 'rock':

            print('It\'s a tie!')

        elif rpsc == 'paper':

            print('You win!')

        elif rpsc == 'scissors':

            print('You lose.')

        else:

            print('...')

            time.sleep(0.5)

            print('What was that for!?!')

    elif comchoice == 2:

        print('Your opponent chose paper.')

        time.sleep(0.5)

        if rpsc == 'rock':

            print('You lose.')

        elif rpsc == 'scissors':

            print('You win!')

        elif rpsc == 'paper':

            print('It\'s a tie!')

        else:

            print(';;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;')

            print('YOOOOOUUUUU LLLLLLLOOOOOOSSSSSEEEEEE')

    elif comchoice == 3:

        print('Your opponent chose scissors')

        time.sleep(0.5)

        if rpsc == 'rock':

            print('You win!')

        elif rpsc == 'paper':

            print('You lose.')

        elif rpsc == 'scissors':

            print('It\'s a tie!')

        else:

            print('YOU CHEATED!')

    e = input('Press enter to play again or type e to leave.')

#VERSION 1.0



  

Note: Online IDEs are not as hard to use as IDEs that you download.

Monday, August 10, 2020

Coding and cars?

Hello, and welcome to my first post on my first blog!!  I am Cedric Rundle, and my blog is going to have a lot of stuff about coding and, well, cars!  It might have some other stuff as well.  Like me telling you what my blog is about.  Ha ha.
    So, first thing first, Coding!  I have been coding in Python 3.  I recently got an IDE for Python to make it easier.  An IDE is a... I don't know, but it should help.  My big project is to make a guess who game.  I have not exactly gotten very far on it...  Oh, well.
Here is the code for it so far.
#This game coded by yahoo0406
import time
import random
import tkinter
Yeah, not very far at all.
    Then we have cars.  This section will be a lot shorter as I have not been doing a lot of car watching.  I did see a Chevette yesterday, and I have seen a couple of crazy Corvettes, but nothing else that I can think of.  
    If you have any questions, post them in the comments section.
    All for now.

Correction

 This is just a correction saying that the link in Suggestions and ideas (not IDEs) should have been  https://www.tutorialspoint.com/codingg...