1. Forums
  2. Discord
  3. About Mapcore
  4. Patreon Supporters
  • Login
  • Register
  • Search
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • More Options
  1. Mapcore
  2. Discussions
  3. Level Design

Pyg Latin created by the NOOB :) using PYTHON

  • cybarian
  • August 4, 2013 at 9:38 AM
  • cybarian
    • August 4, 2013 at 9:38 AM
    • #1

    here is the code of PygLatin game :


    # This is the first line of the program which holds the basic value of our game's # core letters "a and y" that gets stick upon the last of original letters!pyg = 'ay'# This line contains inputoriginal = raw_input('Enter a word:')# this one converts the user input to all small alphabetical charactersword = original.lower()# identifys that user input is not empty only alphabeticalif len(word) > 0 and word.isalpha(): # stores the first letter of the user input that is to be removerd first = word[0] # identifys if the first letter if vowel or consonant and print the type if first == 'a' and 'e' and 'i' and 'o' and 'u': print "This is a vowel." # this translates the word by slicing the input from letter 1 to end by # removing the first letter and bringing it to last and adding the 'pyg' # variable value which is the core of the game! new_word = word[1:] + word[0] + pyg print "Your Translated PygLatin Word is:" + new_word else: # this also translates the word by slicing the input from letter 1 to end by # removing the first letter and bringing it to last and adding the 'pyg' # variable value which is the core of the game! print "This is a Consonant." new_word = word[1:] + word[0] + pyg print "Your Translated PygLatin Word is:" + new_word else: print 'empty' i think it needs improvements...so please dont shy to reply! ......... you may try this in labs.codecademy.com

  • Sentura
    • August 4, 2013 at 9:46 AM
    • #2

    No offense, but I think you're on the wrong forum, bud. While we do have the occasional programmer around here, it's mostly artists and designers.

  • cybarian
    • August 4, 2013 at 2:57 PM
    • #3

    then you may like this.....


    [Blocked Image: http://tomatto.herobo.com/Wall.jpg]


    i created this in 3ds max 2010......8 months ago!......

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!

Register Yourself Login
Discord

The Mapcore Discord is our lively IRC channel of the 2000s reborn. Chat about level design, gaming, and more.

Latest Posts

  1. Hello from Normandy: Metin, working on a tactical FPS

    Thrik
    November 2, 2026 at 10:19 PM
  2. How do I setup CS1.6 mapping on linux?

    zlatan24
    November 2, 2026 at 6:43 AM
  3. CS:S | de_honor | Map creation process by D'artagnan

    Dartagnan
    November 1, 2026 at 5:41 PM
  4. Made a map maker for my indie game.

    daud2k7
    November 1, 2026 at 4:19 PM
  5. First CS2 Maps DM and Bomb Defusal

    zlatan24
    November 1, 2026 at 3:06 PM
  6. BELEK: turning Rouen into competitive FPS maps (Godot project, feedback wanted)

    MetinSaygin
    October 31, 2026 at 1:21 PM
  7. POLYSTRIKE - Finally Announced After Years of Development!

    MetinSaygin
    October 31, 2026 at 10:57 AM
  8. Hello guys I used to go by ''Dabu'' here

    Thrik
    October 27, 2026 at 6:47 PM
  9. Any of the old guard still around? D:

    -HP-
    October 20, 2026 at 11:37 PM
  10. RIP Levelord

    Thrik
    October 16, 2026 at 9:33 AM
  1. Privacy Policy
  2. Contact
Powered by WoltLab Suite™