This is a simple project that simulates a classic phone pad with the numbers from 0 to 9 and the letters that are associated with each number, backspace key, and a send button. Each button is numbered, and pressing a button repeatedly cycles through the letters assigned to it, allowing each button to represent multiple letters.
You can input sequences of numbers with the operators *
and #
and the program will output the corresponding letters.
-
.NET Core 8.0 or higher installed on your machine.
Download .NET Core 8.0 from https://dotnet.microsoft.com/download. -
Visual Studio Code or Visual Studio 2022 installed on your machine.
Download Visual Studio Code from https://code.visualstudio.com/download
Download Visual Studio 2022 from https://visualstudio.microsoft.com.
-
A console application that uses the core library to simulate the classic phone pad.
-
A class library that contains the classes and interfaces that define the core logic of the application.
-
A class library that contains the unit tests for the core library.
graph TD;
APP["ClassicPhonePad"] --"reference"--> CORE["ClassicPhonePad.Core"]
TESTS["ClassicPhonePad.Core.Tests"] --"reference"--> CORE
-
Clone this repository to your machine.
-
Open terminal or command prompt and navigate to the project folder.
-
Restore the project dependencies:
dotnet restore
-
Build the project:
dotnet build
-
Run the project:
dotnet run
-
Fork this repository.
-
Create a new branch with your feature or fix:
git checkout -b feat/my-feature
-
Commit your changes:
git commit -m 'feat: My new feature'
-
Push your branch:
git push origin feat/my-feature
-
Create a pull request.
-
Make sure your PR can pass the CI/CD pipeline.
-
After your PR is approved and merged, don't forget to delete your branch.