This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace HomeWork1; | |
using static Console; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var var1 = 3.34f; | |
var var2 = (float)5.45; | |
var var3 = (int)5f / (float)2; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace HomeWork1; | |
using static Console; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Random randomGenerator = new Random(); | |
int arraySize; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Reflection.Metadata.Ecma335; | |
namespace HomeWork1; | |
using static Console; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Player user = new Player("Sam", new Wallet(50)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Homework2._2; | |
using static Console; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Hero hero = new Hero(50, 5, "Sam"); | |
Enemy ork = new Enemy("Dirty Bob", 30, 3); | |
Battle battle = new Battle(hero, ork); |