Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: I wrote a cryptographic algorithm!
Post: I wrote a cryptographic algorithm!

I am a hobbyist programmer with an occasional fascination with cryptography. I'm in no way a cryptographer, and my algorithm hasn't been vetted or peer-reviewed in any way but I do hope somebody will ...
keames Code sharing 3 3,367 May-09-2021, 07:03 PM
    Thread: I wrote an emulator!
Post: RE: I wrote an emulator!

I believe I've started this thread prematurely. There is still much refactoring to be done and I want to perfect the instruction set microcode. When the project is more presentable, I'll start a new t...
keames Code sharing 8 4,930 Nov-13-2019, 10:13 PM
    Thread: I wrote an emulator!
Post: RE: I wrote an emulator!

I tracked down the last of my bugs to the RHS bus enabling the accumulator onto it when it's told to enable tmp. I've found no further issues with the microcode, but I still have other tests to perfor...
keames Code sharing 8 4,930 Nov-13-2019, 04:12 AM
    Thread: I wrote an emulator!
Post: RE: I wrote an emulator!

I appreciate the advice. I was so excited to share what I had, I didn't notice the errors in my micro program generation. I've caught 2 address assignment errors in that code so far. I wrote a hand-as...
keames Code sharing 8 4,930 Nov-12-2019, 04:41 AM
    Thread: I wrote an emulator!
Post: RE: I wrote an emulator!

I suspect the post hit a size limit. I'm posting the micorprogram generation in its entirety in this reply. ### ### microProgramGen.py ### # I want all my unwrapped constants and the assembleMicroco...
keames Code sharing 8 4,930 Nov-10-2019, 11:10 PM
    Thread: I wrote an emulator!
Post: I wrote an emulator!

I have been inspired by YouTubers like Ben Eater and James Sharman and decided to start dabbling in electronics with my hobby eventually culminating in the design and implementation of a CPU for which...
keames Code sharing 8 4,930 Nov-10-2019, 09:07 PM
    Thread: Question in the twilight zone! What would you use if there was no python?
Post: RE: Question in the twilight zone! What would you ...

I would probably still be writing in vbScript or Visual Basic, if I were still programming at all. I feel python gave me the confidence to write more complex programs and I would have grown bored of p...
keames Bar 15 5,874 May-15-2019, 03:58 AM
    Thread: a function to layout a string
Post: RE: a function to layout a string

I made a mistake in the string slicing tutorial I wrote here. The last slice would actually be: Output:'hypothetical string'Also, I'm an American who speaks 2 languages: English and Japanese. What doe...
keames General Coding Help 5 2,592 May-12-2019, 08:59 PM
    Thread: I want to create an Othello AI.
Post: I want to create an Othello AI.

I have written an Othello game for my mother and would like to implement a single player mode. That means having an AI for the player to play against. All of my previous attempts to make a good Othell...
keames Data Science 0 1,720 May-11-2019, 09:37 PM
    Thread: Package python script which has different libraries as a single executable or script
Post: RE: Package python script which has different libr...

Are you aware of pyInstaller? I've never used it personally but there are a lot of great tutorials out there.
keames General Coding Help 1 2,650 May-11-2019, 08:12 PM
    Thread: Pong clone with classes
Post: RE: Pong clone with classes

I just tried it. The collision detection is a little wonky but it works. When I ran it in IDLE, I got an error traceback when I closed it. The error wasn't in your code, it was in turtle. I suspect th...
keames Code sharing 1 3,933 May-11-2019, 07:44 PM
    Thread: How to pass a dictionary as an argument inside setup function of unittest
Post: RE: How to pass a dictionary as an argument inside...

Passing lists and dictionaries to functions is done using the asterisk and double asterisk syntax respectively. Here is a simple demo program to show you how it works: def aFunc (param1, param2, param...
keames General Coding Help 1 3,238 May-11-2019, 03:18 AM
    Thread: a function to layout a string
Post: RE: a function to layout a string

I don't believe there is a function that does specifically what you're asking. You may need to implement that yourself. I am now curious why you would want to generate strings in this manner. Is there...
keames General Coding Help 5 2,592 May-11-2019, 02:32 AM
    Thread: Adding a single player mode to my wxOthello game
Post: RE: Adding a single player mode to my wxOthello ga...

(Apr-30-2019, 11:35 PM)SheeppOSU Wrote: AI's are like babies if you think about it. The bot u have here has to act based on specific things. It doesn't have any experience whatsoever. That's why y...
keames Game Development 29 12,225 May-01-2019, 01:55 AM
    Thread: Adding a single player mode to my wxOthello game
Post: RE: Adding a single player mode to my wxOthello ga...

It still makes some awfully dumb moves; it's far from perfect but this is the best I've been able to do so far going to minimax route. It beat me once and it was able to draw a game against me. Unfort...
keames Game Development 29 12,225 Apr-29-2019, 06:59 PM
    Thread: Adding a single player mode to my wxOthello game
Post: RE: Adding a single player mode to my wxOthello ga...

joe_momma, thanks for that. I'll take a look at it. I've made something of a breakthrough in multithreading some of my blocking code; specifically in the code that's supposed to display an error mess...
keames Game Development 29 12,225 Apr-28-2019, 04:49 PM
    Thread: Adding a single player mode to my wxOthello game
Post: RE: Adding a single player mode to my wxOthello ga...

I made the PlayerBot.makeMove method run on a separate thread but this introduced another problem: The player can make a move while the minimax is still running. I tried adding this code to my gameboa...
keames Game Development 29 12,225 Apr-27-2019, 11:33 PM
    Thread: Adding a single player mode to my wxOthello game
Post: RE: Adding a single player mode to my wxOthello ga...

I wrote a simpler scoring heuristic and implemented minimax with alpha-beta pruning. The result is a bot that makes some moves that give me pause, but it still dives into the corners at almost the fir...
keames Game Development 29 12,225 Apr-27-2019, 09:09 PM
    Thread: Adding a single player mode to my wxOthello game
Post: RE: Adding a single player mode to my wxOthello ga...

I've been attempting to get my getStage method to work and its malfunctions continue to defy all logic. I've removed the now obviously invalid logic in the previous version posted above, but it still ...
keames Game Development 29 12,225 Apr-26-2019, 10:05 PM
    Thread: Adding a single player mode to my wxOthello game
Post: RE: Adding a single player mode to my wxOthello ga...

It seems all I've managed to do was make the code look nicer and get rid of some repetition. Many of the same problems still exist. I suspected that checks and score changes designed to help the bot a...
keames Game Development 29 12,225 Apr-26-2019, 06:41 PM

User Panel Messages

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