From 781fb1376d7d9730675ae7bcd0bea5ada82d2434 Mon Sep 17 00:00:00 2001 From: foglar Date: Wed, 9 Oct 2024 21:40:22 +0200 Subject: [PATCH] Remove sound player, edit readme --- Program.cs | 20 -------------------- README.md | 17 ++++++++++++++++- TetrominoSRS.md | 2 +- 3 files changed, 17 insertions(+), 22 deletions(-) diff --git a/Program.cs b/Program.cs index 090b114..a6b6271 100644 --- a/Program.cs +++ b/Program.cs @@ -11,23 +11,6 @@ namespace Tetris public static void Main(string[] args) { - // Music player -#if _WINDOWS - SoundPlayer player = new SoundPlayer("song.wav"); - player.PlayLooping(); -#endif - - //using (var audioFile = new AudioFileReader(audioFile)) using ( - //var outputDevice = new WaveOutEvent()) - //{ - // outputDevice.Init(audioFile); - // outputDevice.Play(); - // while (outputDevice.PlaybackState == PlaybackState.Playing) - // { - // Thread.Sleep(1000); - // } - //} - Matrix matrix = new Matrix(); Shape shape = new Shape(matrix); int previousScore = 0; @@ -58,9 +41,6 @@ namespace Tetris } System.Threading.Thread.Sleep(Speed.ShowSpeed()); -#if _WINDOWS - player.Stop(); -#endif } } diff --git a/README.md b/README.md index 596f22e..a6e490c 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,20 @@ # Tetris +[![.NET](https://github.com/foglar/Tetris/actions/workflows/dotnet.yml/badge.svg?branch=master)](https://github.com/foglar/Tetris/actions/workflows/dotnet.yml) + +## Compilation and running + +```bash +git clone https://github.com/foglar/Tetris.git +cd Tetris +dotnet run ./ +``` + +> [!NOTE] +> For some weird cause it won't run when executed through Visual Studio on Windows. +> Run it in terminal instead with command above. + ## Simple tetris game -- [SRS specifications](./TetrominoSRS.md) +- [SRS](./TetrominoSRS.md) +- [FS](./TetrominoFS.md) - Not ready yet diff --git a/TetrominoSRS.md b/TetrominoSRS.md index 81d6a88..f1b8d69 100644 --- a/TetrominoSRS.md +++ b/TetrominoSRS.md @@ -6,7 +6,7 @@ Date: 20/09/2024 ## Table of Contents -1. Document Edit History +1. Document Edit History 2. Introduction 3. Service Development 4. Service Purpose