harbor run -t openthoughts/tasktrove-exp-rpt-stack-go-v4-stack-go-2790harbor download openthoughts/tasktrove-exp-rpt-stack-go-v4-stack-go-2790Implement a struct ReversiAnz in Go that encapsulates the following functionality, ensuring that all provided tests pass:
Constructor:
NewReversiAnz that returns a pointer to a new ReversiAnz instance.Fields:
min, max (both integers)avg (float64)pointCnt, edgeCnt (both integers)edgeSideOneCnt, edgeSideTwoCnt, edgeSideThreeCnt, edgeSideOtherCnt (all integers)ownMin, ownMax (both integers)ownAvg (float64)ownPointCnt, ownEdgeCnt (both integers)ownEdgeSideOneCnt, ownEdgeSideTwoCnt, ownEdgeSideThreeCnt, ownEdgeSideOtherCnt (all integers)badPoint, goodPoint (both integers)Methods:
ReversiAnz struct:
Getters for all fields:
GetMin() intGetMax() intGetAvg() float64GetPointCnt() intGetEdgeCnt() intGetEdgeSideOneCnt() intGetEdgeSideTwoCnt() intGetEdgeSideThreeCnt() intGetEdgeSideOtherCnt() intGetOwnMin() intGetOwnMax() intGetOwnAvg() float64GetOwnPointCnt() intGetOwnEdgeCnt() intGetOwnEdgeSideOneCnt() intGetOwnEdgeSideTwoCnt() intGetOwnEdgeSideThreeCnt() intGetOwnEdgeSideOtherCnt() intGetBadPoint() intGetGoodPoint() intSetters for all fields:
SetMin(value int)SetMax(value int)SetAvg(value float64)SetPointCnt(value int)SetEdgeCnt(value int)SetEdgeSideOneCnt(value int)SetEdgeSideTwoCnt(value int)SetEdgeSideThreeCnt(value int)SetEdgeSideOtherCnt(value int)SetOwnMin(value int)SetOwnMax(value int)SetOwnAvg(value float64)SetOwnPointCnt(value int)SetOwnEdgeCnt(value int)SetOwnEdgeSideOneCnt(value int)SetOwnEdgeSideTwoCnt(value int)SetOwnEdgeSideThreeCnt(value int)SetOwnEdgeSideOtherCnt(value int)SetBadPoint(value int)SetGoodPoint(value int)Reset:
Reset() that resets all fields to their initial values (zero or zero equivalent).File Location:
ReversiAnz and all its methods in the /app/ directory into a file named reversi_anz.go.Ensure that the implementation satisfies all the testing conditions outlined in the provided test cases so that all tests pass successfully.
Important: declare your solution in package model (the test file uses package model, so the implementation must use the matching package name).