Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Numeric Enigma Machine
Post: RE: Numeric Enigma Machine

In the end, I realized that the issue is how I was configuring my rotors. I adjusted the configuration to something that was more appropriate and enabled the whole rotor (input, output, wiring) to rot...
idev General Coding Help 9 706 Mar-29-2024, 06:15 PM
    Thread: Numeric Enigma Machine
Post: RE: Numeric Enigma Machine

As an update to my previous reply, there seems to be an issue with apply_rotor(input_digit, rotor, position):Output:1 [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] 0 adjusted_input 1 Forward - Digit after rotor 0 : ...
idev General Coding Help 9 706 Mar-28-2024, 02:17 PM
    Thread: Numeric Enigma Machine
Post: RE: Numeric Enigma Machine

Okay, you made an interesting point (if it's a valid one) and I decided to try your test method: # Define the rotors and reflector rotors = { 0: list(range(10)), 1: list(range(10)), 2: li...
idev General Coding Help 9 706 Mar-28-2024, 01:30 PM
    Thread: Numeric Enigma Machine
Post: RE: Numeric Enigma Machine

The reverse pass isn't supposed to have rotation. The rotors get set to their initial position. The first digit in the sequence is encrypted (forward, reflector, backward). Then, rotation happens. Th...
idev General Coding Help 9 706 Mar-28-2024, 12:45 PM
    Thread: Numeric Enigma Machine
Post: RE: Numeric Enigma Machine

I have revisited all of my previous tinkering and I have tried a new codebase, which seems to be progress. def enigma(starting_rotors, starting_positions, message): # Define the rotors and reflec...
idev General Coding Help 9 706 Mar-28-2024, 03:38 AM
    Thread: Numeric Enigma Machine
Post: RE: Numeric Enigma Machine

I am not sure I understood that correctly, but I am going to try something and see how it works out. (Mar-27-2024, 10:52 PM)bowlofred Wrote: When you shift the array, you are changing how the inpu...
idev General Coding Help 9 706 Mar-28-2024, 01:54 AM
    Thread: Numeric Enigma Machine
Post: Numeric Enigma Machine

I have come across Lockheed Martin's problem from the 2018 CodeQuest, a numeric Enigma machine: [attachment=2797] I am wondering what the best way to code the rotors and their mappings is, consider...
idev General Coding Help 9 706 Mar-27-2024, 09:50 PM

User Panel Messages

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