Post: [INFO] Learn to code like the pro's in 3 days or less!
10-18-2010, 10:37 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); So most people don't know this. but GSC is very close to the python language that people code with. its a blend of C++ and python and something slightly new entirely. but if you were to learn python fairly well you could code GSC VERY easily.

There are sites all over the internet that teach you how to code python scripts even if your a total newb to coding. they say you can learn in 3 days or less no matter what level of coder you already are.

So for those of you who wish to learn to code and quit copy pasting. Go google the python language and find some sites that teach you to code it. it wont take long and you'll come out knowing how to code GSC like most of the "expert" coders on here. GSC is a very basic language and not hard to understand with if you have a core knowledge of other languages, since its closest in my opinion to python. i suggest you go learn to code in python which is very easy to do

Hope this helps some of you!

-Jeff
(adsbygoogle = window.adsbygoogle || []).push({});

The following 16 users say thank you to jeffadkins51 for this useful post:

angel_of_deth, SweatyMidgets, IRiSe_GodFather, JD_WCE, Kakashii, kane212, mw2alltheway, PHgua, Quzit, rico4u2day2, SavageRising, Skyl1n3, TONEY777, TRBZA, XeDa, YKM!!
12-23-2010, 04:10 AM #11
coolbunny1234
the bunny who started it all
Thanks for this!
12-23-2010, 01:46 PM #12
Originally posted by jeffadkins51 View Post
So most people don't know this. but GSC is very close to the python language that people code with. its a blend of C++ and python and something slightly new entirely. but if you were to learn python fairly well you could code GSC VERY easily.

There are sites all over the internet that teach you how to code python scripts even if your a total newb to coding. they say you can learn in 3 days or less no matter what level of coder you already are.

So for those of you who wish to learn to code and quit copy pasting. Go google the python language and find some sites that teach you to code it. it wont take long and you'll come out knowing how to code GSC like most of the "expert" coders on here. GSC is a very basic language and not hard to understand with if you have a core knowledge of other languages, since its closest in my opinion to python. i suggest you go learn to code in python which is very easy to do

Hope this helps some of you!

-Jeff


I agree very much with this but if you learn python you have to unlearn quite alto e.g the
    ;
you dont need in python but is needed in gsc coding this could give you alot of bad syntax
(below is a game of tic tac toe and as you can see it has no ; )
    places = {}

def check_place(n):
try:
n = int(float(n))
except ValueError:
return "Unaccepted input"
else:
if places.get(n, 'no'Winky Winky == 'no':
return n
else:
return "Choose another place"

def winner(notation):
lst = places.values()
if (lst[0:3] == [notation, notation, notation]) or (lst[3:6] == [notation, notation, notation]) or (lst[6:] == [notation, notation, notation]) or (lst[0::4]==[notation, notation, notation]) or (lst[2:7:2] == [notation, notation, notation]) or (lst[0:7:3] == [notation, notation, notation]) or (lst[1:8:3] == [notation, notation, notation]) or (lst[2::3] == [notation, notation, notation]):
return True
else:
return False

def game(pn, order): # u == turn, pn == player notation
print "Player %s's turn" % order
play = check_place(raw_input("Please enter the cell number: "))
if isinstance(play, str):
print play
else:
places[play] = pn
print """
%s | %s | %s
---|---|---
%s | %s | %s
---|---|---
%s | %s | %s
""" % (places.get(1, ' 'Winky Winky,places.get(2, ' 'Winky Winky,places.get(3, ' 'Winky Winky,places.get(4, ' 'Winky Winky,places.get(5,' 'Winky Winky,places.get(6, ' 'Winky Winky,places.get(7, ' 'Winky Winky,places.get(8, ' 'Winky Winky,places.get(9, ' 'Winky Winky)
win = winner(pn)
return win

print """ Each cell has its own number, so:
1 | 2 | 3
---|---|---
4 | 5 | 6
---|---|---
7 | 8 | 9
"""

while True: # To know who X is and who O is.
p1n = raw_input("Please choose, X or O: ")
if len(p1n.strip().lower()) != 1:
print "Please type: X or O"
else:
if (p1n.strip()).lower() == 'o':
print "player 1: O\nplayer 2: X"
p1n = 'O'
p2n = 'X'
break
elif (p1n.strip()).lower() == 'x':
print "player 1: X\nplayer 2: O"
p1n = 'X'
p2n = 'O'
break
else:
print "X or O"
continue
turn = 1
while turn <= 9:
if turn in [1,3,5,7,9]:
c = game(p1n, '1'Winky Winky
if c:
print 'Player 1 wins Smile'
break
else:
turn += 1
else:
c = game(p2n, '2'Winky Winky
if c:
print 'Player 2 wins Smile'
break
else:
turn += 1
if len(places) == 9 and c == False:
print "TIE"
raw_input("Press enter to exit...")
12-23-2010, 01:56 PM #13
Skyl1n3
DO SOMETHING THEN!
Originally posted by ii
(below is a game of tic tac toe and as you can see it has no ; )


Hmm, nice rap right there. Needs more work :p
12-23-2010, 07:39 PM #14
CHAOZ
Banned
You must login or register to view this content.
01-13-2011, 12:56 AM #15
FaTbOyOnAbiKe
Do a barrel roll!
Originally posted by jeffadkins51 View Post
like i said once you know a core language learning what all the gsc "mumbo" actually means is quite simple

and yes its a mix of c and python and something new

but learning python can be accomplished easily in 3 days or less... learning c.... not so easy lol

but yes if you want to go learn c i encourage it. that's great. but if you're doing it to code gsc files. start with python. if you like what you're learning and want to take it to the next level, sure go learn c. but learning c isnt required for programming in GSC. unless of course you want to REALLY program and not just learn to create functions and understand how it works on a basic level Smile
i heard from a lot of people that python is seriously hard :l i am like new to this can you link me to a site that will teach it or the name of a book ;o?
01-13-2011, 02:12 AM #16
Toker Face
Huge heart, small dick
You must login or register to view this content. <---- heres the PDF of a little book to help you out learning Python
01-13-2011, 02:28 AM #17
gola
OVER 9000!
Originally posted by lunarwolf23455 View Post
i heard from a lot of people that python is seriously hard :l i am like new to this can you link me to a site that will teach it or the name of a book ;o?


Why the **** did you bump this.
01-13-2011, 03:48 AM #18
FaTbOyOnAbiKe
Do a barrel roll!
Originally posted by Adogalog View Post
Why the **** did you bump this.

WELL THEN why dont you be nicer mr flamer
01-13-2011, 05:45 AM #19
woofdawg233
Tokin' on Dat GreenStuff
To me java is very similar since i program in it lol

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo