Python Object Based Sudoku Solver

Coding
GITHUB: code here Recently I have been spending most of my time trying to learn C and work on the 8-bit computer, and I realised the other day that I had not actually done any proper Python in over a month. Python was the first language I learnt and to this day is probably still my favourite due to its readability and wide selections of libraries. Therefore I set myself the challenge to build a Sudoku solver during my lunch breaks. I absolutely love object orientated programming, and I've been doing a lot of C recently, I wanted to make this object oriented as possible. Here my plan: I am going to make each level of the grid an object. There will be cell objects. This will be for one…
Read More

How To Make Commands For Linux Terminal. Compile and Run Your C Code in One Command

Coding, Tips
My friend has just started learning C and he was talking about how it was irritating that you couldn't run the code with one command like you can with Python. I agreed this was irritating, so I decided to take advantage of the customisability of Linux and make a command to do this for you. Quick: clone this repository, make the setup file executable using "sudo chmod +x setup" and then run "./setup". Steps: 1: Create a bash script Bash is the programming language used by the shell on Linux. You can create a bash script with the extension .sh, but you can also make a file without an extension by starting the file #! /bin/bash to create a bash environment. $ gedit FILENAME 2: Add your bash code As…
Read More

Basic Python Tutorial

Coding
This is an article for a friend who is learning Python from scratch. I will be adding to it over the next few weeks when I have time. If you are using Python on Windows, use the install here. I would also recommend downloading Visual Studio here. It is an IDE which will give you some tips as you go along. After installing, go to the extensions on the top left of the screen and install the Python extension. Extensions is the fifth icon down Very Basic Python A few basic functions: print() will write whatever is in the brackets to the screen. Eg print(10) would appear as 10 on the screen.# the hashtag sign on Python is the for commenting. It means that the program won't read whatever is…
Read More

From Transistors to an 8-bit Computer

Computers
A few weeks ago, a memory popped up on my phone of a 3-bit added I had made from purely transistors and resistors. I remember building this after being fascinated by how computers could take electric charges and use clever circuitry to turn these into complex mathematical computations. After seeing went to watch a quick video to remind me of the logic behind this, and I really got in a rabbit hole. After watching a few video series, mainly Ben Eater's breadboard computer, I was really inspired to take up a challenge of my own, something that would really force me to truly understand the low-level behavior of a basic computer. https://www.youtube.com/watch?v=HyznrdDSSGM&list=PLowKtXNTBypGqImE405J2565dvjafglHU&ab_channel=BenEater The video series which inspired me to start this project. I would highly reccomend it. Over the next…
Read More