Algorithm for scissor paper stone

前端 未结 8 620
日久生厌
日久生厌 2021-02-06 20:03

I am using the following method which works but wondering if there is a better algorithm to perform the test. Is there a better way to do it? Doing this in C# but putting syntax

8条回答
  •  野的像风
    2021-02-06 20:37

    A simple JavaScript implementation using sine wave function to calculate result:

    
    

    No if's required, just for fun...

    Check it

提交回复
热议问题