SebLague / Chess-Challenge

Create your own tiny chess bot!
https://www.youtube.com/watch?v=Ne40a5LkK6A
MIT License
1.77k stars 1.06k forks source link

Is System.Math allowed? #431

Closed ScottProgrammer closed 1 year ago

ScottProgrammer commented 1 year ago

I see quite a few examples in this issue list using System.Math for Math.Min, Math.Max it is not listed in the allowed namespaces can we get an official verdict on if using it breaks the rules

it saves very needed tokens over writing a function like this public int Max(int Number1, int Number2) { if (Number1 > Number2) return Number1; return Number2; } but don;t want to be disqualified for using the Math namespace

ryanheath commented 1 year ago

Yes it is allowed. #162 see reply from Seb