Star Trek
I made a star trek game. https://github.com/smc897/startrek/blob/main/startrek/bin/Debug/net6.0/startrek.exe
The reservation system
I made a train reservation system in Java for an internship I did. Here is a screenshot:

To use it, here are the steps:
- Register: Enter a username where it says username and a password where it says password. Just be sure to remember it. Hit the register button like so:

It should display a popup saying you have registered, like so:

2. login: Hit OK on the popup, then type in your username and password, and login. You should see a list of trips on the side:

Within each item in the list, there is a train number, a PNR number, a train name, and a date. When logged in, you can see each item that was put there previously. To add a trip, fill in the new trip information on the right, and hit the “add trip” button at the top like so:

3. Delete a trip: First, select a trip on the left hand list, then hit “delete” like so:

4. When you are done, hit logout right next to delete like so:

5. Get password, in case you forget: Here is how you can retrieve a password, if you remember your username, type in your username in the user name field, then hit “get pw”, like so:

Here is how the software works: At a low level, there is a user class, and a traininfo class. Here is the definition for the user class:

And here is the definition for the traininfo class:

Above those two are collection classes allowing for CRUD operations on lists of the traininfo and user classes, they are traininfolist and userlist. The main class, trainappmaven, has all the functions that allow for login, logout, delete a trip, and all of that. On top of the main class, we have the frame class with the action handlers for your buttons and text fields. Inside the trainappmaven, we have a small database connection that allows for communication with access. It allows for a big read of the db to populate the user list and train list. Here is the code on my Github: https://github.com/smc897/OIBSIP
Progress in 2023
I started this blog in 2017. I made a couple posts. I have worked on some projects this year, some are simple, some are more involved. I made a Sudoku solver on a Saturday morning. Here is a screenshot of how to use it:

Here is how to use it: enter the puzzle number, up to and including the max number that it gives you. It spits out the solved puzzle. It asks you if you want to go again, enter yes or no. Capitalization doesn’t matter. Run as many times as you want, enter no to quit.
To add a new puzzle, here is how you do it:

The 2 at the very top corresponds to the number of puzzles in the file. The next line down, 0, refers to puzzle 0. The next nine lines are the contents of puzzle 0. After that, we have 1, which stands for puzzle 1. Then, we have the nine lines for puzzle 1. To add a puzzle, add the puzzle number, which is 1 above the closest one above. Also, increment the very top number of the file. Then, after the puzzle number, add the nine lines of content. Save. The program is ready to run.
How the program works:

The way the program works is as follows:
- Get the maximum number of puzzles from puzzles.txt, put into max.
- Prompt the user for the number of the puzzle, from 0 to max. If the user’s response is out of range, try again until the response is in range.
- Load the proper puzzle from the file, into a list of integers.
- Solve the puzzle, put the solved puzzle into another list of integers.
- Display the puzzle in the console.
- prompt the user for a yes or no whether they want to go again. Convert the response to all upper case so that they can enter lower or upper case.
- repeat.
Next is how the solver works.
How the solver works:
The solver uses a backtracking algorithm, basically guessing each cell, and testing if it is safe via row, col, and box. Here is the code, based off of the code on GeeksforGeeks:

As you can see, it basically runs thru 1..9 for each cell, when it finds one that is safe, it places it into the cell, then moves onto the next cell. When it advances past the end of the puzzle, it returns back to the main loop. Cool. There is some junk dealing with converting between lists and arrays, for a better look here is the code on my Github: https://github.com/smc897/sudoku
Hello world!!!
This is a test.
Time machine
Bob and Sally’s time machine, chapter 1 done
Bob and Sally’s time machine…
Characters:
Bob and Sally have an adventure in their garage. They create a time machine. They go back in time to the middle ages, they check their machine for damage. They discover that they have a problem. Their battery is dead, and of course in the middle ages, batteries are not around. They have to make one. They are lost at first with what to do, they figure out that they need copper, lead, and some way to get sulfuric acid. They go on a strange quest full of mountains and volcanoes and stuff. Things get interesting. Their trajectory is not guided well, and they have landed in the middle of nowhere. They do have a nice compass to guide them as they go North, South, East and West to find civilization. They at first stumble on a weird sign in the forest that leads to a path into darkness. It says, in six different languages, “Help for anything this way”. They are intrigued.
At the sign, they find it odd that it shows up in the middle of nowhere. Keep in mind that this is around the 15th century, there is no GPS, or cell phones, or computers, things are primitive-ish. “Should we explore this path?” says Bob. “I think we will either explore, or be lost forever,” says Sally. “You are very dramatic,” says Bob. “I think we should flip a coin. I have some change in my pocket, let’s flip a quarter. Heads we explore the path, tails we don’t,” says Bob. They flip the quarter. It lands in the dirt, and it takes an hour to find it because of the tall grass. They scrub the dirt off of it, it is heads.
Down the path they go. Everything is normal for the first little while, then things start getting weird. They both start feeling dizzy, and their vision is getting blurry. The sun starts to change colors to a more orange hue, and the sky starts turning more purplish. “I don’t feel right about this,” says Sally. Bob agrees, but they are back to the fact that their battery is dead, and they are basically stranded. They need help. “I wish their was an O’reilly Auto Parts nearby that we could buy a battery from,” he says. “Me too,” says Sally. They briefly wonder if they should turn back, but they realize they are in the middle of nowhere, and really have no choice. Plus, everything behind them is turning into pretty fractals. Things are getting interesting. They press on.
They keep moving forward through eventually a tunnel with a people mover in it, so they don’t have to walk all the way. This goes on for a while, until everything stops. Right in front of them is a big door with a spiraling thing in it. The top of the door says “this way…” Once again, they are intrigued. Bob, being Bob, sticks his hand into the spiraly thing. His hand goes through, and kind of feels some suction. He pulls it back out, unharmed. “I think we are okay,” he says. “That looks like fun, I want to try,” says Sally. She at first sticks her hand in, just like Bob, and it comes out okay with some suction, just like Bob’s. Then they hear a loud, booming voice.
“What is your purpose here?”, says the voice. Nervous, and stuttering a bit, Bob speaks: “We are from, from the future, and we are stranded.” Then, the voice says something unsettling: “Did you say something about an Auto Parts store earlier?” This caught them by surprise, as this made them realize that the voice knows things. This actually kind of makes Sally and Bob a bit less nervous. “We need a new battery for our time machine.” The voice paused for a minute.
“Hmm. I understand you are from the future, I see your time machine. We don’t have anything already made, but I can guide you to some things. Here…” the voice says. Out of the spirally thing in the door comes a human hand that gives them a big map on parchment paper. The voice speaks: “I am Sir Prise, from the great British Isles. You are about to go on a quest. Come in.”
They get sucked through the door. Boom, they are in. “What is this place?” says Sally. She feels some Dejavu. Prise walks in from the back, and sits down in his chair. Bob kind of feels some Dejavu as well. Something is amiss. “You have come just in time, “ says Prise.
Website Templates
Hi. Here is another addition to the blog I started a couple years ago. I am promoting a neat web template collection I found. It costs $29 for one set. Here is the link to buy a set: https://2bff4rkh8fo0e09n6fm3cyem3r.hop.clickbank.net/?tid=1234