Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: COMPLETE BEGINNER TO NETWORKING. HELP?
Post: RE: COMPLETE BEGINNER TO NETWORKING. HELP?

I did click on the link, but I'd rather use the socket module.
ShadowWarrior17 Networking 11 7,651 Jan-04-2018, 08:47 PM
    Thread: COMPLETE BEGINNER TO NETWORKING. HELP?
Post: RE: COMPLETE BEGINNER TO NETWORKING. HELP?

Is there any sort of boiler plate to this?
ShadowWarrior17 Networking 11 7,651 Jan-04-2018, 05:41 PM
    Thread: Connect Four Win Check Function
Post: RE: Connect Four Win Check Function

Essentially, my idea was to check every possible vertical, horizontal and diagonal possibility on the board after a player has "placed" a counter. However, that seems inefficient. I like your idea, a...
ShadowWarrior17 General Coding Help 7 13,052 Jan-04-2018, 05:41 PM
    Thread: Connect Four Win Check Function
Post: RE: Connect Four Win Check Function

Sorry about the 2d array, of course it's just a list of strings. **wall** I like the idea of a win function with horizontal, vertical, and diagonal functions within. It's the same idea I had. I don'...
ShadowWarrior17 General Coding Help 7 13,052 Jan-04-2018, 03:31 PM
    Thread: Connect Four Win Check Function
Post: RE: Connect Four Win Check Function

BUMP **biggrin**
ShadowWarrior17 General Coding Help 7 13,052 Jan-04-2018, 01:22 PM
    Thread: Number Guessing Game - Need Help
Post: RE: Number Guessing Game - Need Help

Just use two points and add them and divide them by two and that's your first guess, just like a human would do. 0+100//2=50. Then an input would be if the guess is too high or low. Then the guess wou...
ShadowWarrior17 General Coding Help 8 5,397 Jan-04-2018, 02:16 AM
    Thread: COMPLETE BEGINNER TO NETWORKING. HELP?
Post: COMPLETE BEGINNER TO NETWORKING. HELP?

I am looking to create a LAN game on python. I am currently in the works of a connect four game. Can anyone tell/show how to setup a server, so it's only with two people, ensure it has a password, an...
ShadowWarrior17 Networking 11 7,651 Jan-03-2018, 09:42 PM
    Thread: Connect Four Win Check Function
Post: Connect Four Win Check Function

I am creating a Connect Four game and was wondering on how to create a function to determine if a player has won. This is my board: "| | | | | | | |" "| | | | | | | |" "| ...
ShadowWarrior17 General Coding Help 7 13,052 Jan-03-2018, 09:37 PM
    Thread: Impossible Function Task?
Post: RE: Impossible Function Task?

So without modifying the rules, the task in itself is impossible?
ShadowWarrior17 Homework 11 5,816 Jan-03-2018, 09:31 PM
    Thread: Simple Function Problem, please help
Post: RE: Simple Function Problem, please help

The "nth term" in the function columncheck() is 4c-2, but to replace the space in the string, it's still 4c-1.
ShadowWarrior17 General Coding Help 16 7,086 Jan-03-2018, 09:29 PM
    Thread: Simple Function Problem, please help
Post: RE: Simple Function Problem, please help

When the user enters a column, the correct position is taken in the list. The function that changes the string: def insertChar(mystring, position, chartoinsert ): mystring=mystring[:position-1]+c...
ShadowWarrior17 General Coding Help 16 7,086 Jan-02-2018, 10:44 PM
    Thread: Impossible Function Task?
Post: Impossible Function Task?

I have recently taught myself to use functions, and tried to do the impossible, this task: Shhh. They are listening! We need a plan… I know, let us use a cipher to hide our conversations. That way t...
ShadowWarrior17 Homework 11 5,816 Jan-02-2018, 10:36 PM
    Thread: Simple Function Problem, please help
Post: RE: Simple Function Problem, please help

But what is wrong with my function? Also, I'm not checking if a row is full, but if the lowest position in a column is full, just like gravity in Connect 4.
ShadowWarrior17 General Coding Help 16 7,086 Jan-01-2018, 08:55 PM
    Thread: Simple Function Problem, please help
Post: RE: Simple Function Problem, please help

Please help! **wall** **wall** **cry** **cry**
ShadowWarrior17 General Coding Help 16 7,086 Dec-31-2017, 08:31 PM
    Thread: Simple Function Problem, please help
Post: RE: Simple Function Problem, please help

row6="| | | | | | | |" row5="| | | | | | | |" row4="| | | | | | | |" row3="| | | | | | | |" row2="| | | | | | | |" row1="| | |...
ShadowWarrior17 General Coding Help 16 7,086 Dec-31-2017, 05:23 PM
    Thread: Simple Function Problem, please help
Post: RE: Simple Function Problem, please help

c is an integer between 1 and 7, dboard is a 2d array, consisting of variables which contain strings. The function is called this way: column=int(input("Choose a column: ")) columncheck(column)
ShadowWarrior17 General Coding Help 16 7,086 Dec-28-2017, 03:20 AM
    Thread: Simple Function Problem, please help
Post: RE: Simple Function Problem, please help

Hi! **biggrin**
ShadowWarrior17 General Coding Help 16 7,086 Dec-28-2017, 02:20 AM
    Thread: Simple Function Problem, please help
Post: Simple Function Problem, please help

def columncheck(c): x=5 pos=False while pos != True: if dboard[x][(4*c)-1]== " ": pos=True elif dboard[x][(4*c)-1] != " ": x-=1 return xWhen thi...
ShadowWarrior17 General Coding Help 16 7,086 Dec-28-2017, 02:17 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020