Browse Source

started new Python code

master
sieut 6 years ago
parent
commit
9d38d3f3b6
  1. 7
      NewCode/rating-system/neighbor.py
  2. 23
      NewCode/rating-system/team.py
  3. 0
      OldCode/BetSimulateProgram/CMakeLists.txt
  4. 0
      OldCode/BetSimulateProgram/CMakeLists.txt~
  5. 0
      OldCode/BetSimulateProgram/Hashtable.cpp
  6. 0
      OldCode/BetSimulateProgram/Hashtable.h
  7. 0
      OldCode/BetSimulateProgram/Main
  8. 0
      OldCode/BetSimulateProgram/MatchUpdate.cpp
  9. 0
      OldCode/BetSimulateProgram/Simulation.cpp
  10. 0
      OldCode/BetSimulateProgram/Simulation.o
  11. 0
      OldCode/BetSimulateProgram/Team.cpp
  12. 0
      OldCode/BetSimulateProgram/Team.h
  13. 0
      OldCode/BetSimulateProgram/TeamUpdate.cpp
  14. 0
      OldCode/BetSimulateProgram/build/CMakeCache.txt
  15. 0
      OldCode/BetSimulateProgram/build/CMakeFiles/2.8.12.2/CMakeCCompiler.cmake
  16. 0
      OldCode/BetSimulateProgram/build/CMakeFiles/2.8.12.2/CMakeCXXCompiler.cmake
  17. 0
      OldCode/BetSimulateProgram/build/CMakeFiles/2.8.12.2/CMakeDetermineCompilerABI_C.bin
  18. 0
      OldCode/BetSimulateProgram/build/CMakeFiles/2.8.12.2/CMakeDetermineCompilerABI_CXX.bin
  19. 0
      OldCode/BetSimulateProgram/build/CMakeFiles/2.8.12.2/CMakeSystem.cmake
  20. 0
      OldCode/BetSimulateProgram/build/CMakeFiles/2.8.12.2/CompilerIdC/CMakeCCompilerId.c
  21. 0
      OldCode/BetSimulateProgram/build/CMakeFiles/2.8.12.2/CompilerIdC/a.out
  22. 0
      OldCode/BetSimulateProgram/build/CMakeFiles/2.8.12.2/CompilerIdCXX/CMakeCXXCompilerId.cpp
  23. 0
      OldCode/BetSimulateProgram/build/CMakeFiles/2.8.12.2/CompilerIdCXX/a.out
  24. 0
      OldCode/BetSimulateProgram/build/CMakeFiles/CMakeDirectoryInformation.cmake
  25. 0
      OldCode/BetSimulateProgram/build/CMakeFiles/CMakeOutput.log
  26. 0
      OldCode/BetSimulateProgram/build/CMakeFiles/Main.dir/CXX.includecache
  27. 0
      OldCode/BetSimulateProgram/build/CMakeFiles/Main.dir/DependInfo.cmake
  28. 0
      OldCode/BetSimulateProgram/build/CMakeFiles/Main.dir/Hashtable.cpp.o
  29. 0
      OldCode/BetSimulateProgram/build/CMakeFiles/Main.dir/MatchUpdate.cpp.o
  30. 0
      OldCode/BetSimulateProgram/build/CMakeFiles/Main.dir/Simulation.cpp.o
  31. 0
      OldCode/BetSimulateProgram/build/CMakeFiles/Main.dir/Team.cpp.o
  32. 0
      OldCode/BetSimulateProgram/build/CMakeFiles/Main.dir/TeamUpdate.cpp.o
  33. 0
      OldCode/BetSimulateProgram/build/CMakeFiles/Main.dir/build.make
  34. 0
      OldCode/BetSimulateProgram/build/CMakeFiles/Main.dir/cmake_clean.cmake
  35. 0
      OldCode/BetSimulateProgram/build/CMakeFiles/Main.dir/depend.internal
  36. 0
      OldCode/BetSimulateProgram/build/CMakeFiles/Main.dir/depend.make
  37. 0
      OldCode/BetSimulateProgram/build/CMakeFiles/Main.dir/flags.make
  38. 0
      OldCode/BetSimulateProgram/build/CMakeFiles/Main.dir/link.txt
  39. 0
      OldCode/BetSimulateProgram/build/CMakeFiles/Main.dir/progress.make
  40. 0
      OldCode/BetSimulateProgram/build/CMakeFiles/Makefile.cmake
  41. 0
      OldCode/BetSimulateProgram/build/CMakeFiles/Makefile2
  42. 0
      OldCode/BetSimulateProgram/build/CMakeFiles/Progress/1
  43. 0
      OldCode/BetSimulateProgram/build/CMakeFiles/Progress/2
  44. 0
      OldCode/BetSimulateProgram/build/CMakeFiles/Progress/3
  45. 0
      OldCode/BetSimulateProgram/build/CMakeFiles/Progress/4
  46. 0
      OldCode/BetSimulateProgram/build/CMakeFiles/Progress/5
  47. 0
      OldCode/BetSimulateProgram/build/CMakeFiles/Progress/count.txt
  48. 0
      OldCode/BetSimulateProgram/build/CMakeFiles/TargetDirectories.txt
  49. 0
      OldCode/BetSimulateProgram/build/CMakeFiles/cmake.check_cache
  50. 0
      OldCode/BetSimulateProgram/build/CMakeFiles/progress.marks
  51. 0
      OldCode/BetSimulateProgram/build/Main
  52. 0
      OldCode/BetSimulateProgram/build/Makefile
  53. 0
      OldCode/BetSimulateProgram/build/cmake_install.cmake
  54. 0
      OldCode/BetSimulateProgram/data/change_data.py
  55. 0
      OldCode/BetSimulateProgram/data/data_updated
  56. 0
      OldCode/BetSimulateProgram/data/lounge_match
  57. 0
      OldCode/BetSimulateProgram/data/lounge_match_stat
  58. 0
      OldCode/BetSimulateProgram/data/lounge_odds
  59. 0
      OldCode/BetSimulateProgram/data/lounge_odds_fixed
  60. 0
      OldCode/BetSimulateProgram/data/lounge_odds~
  61. 0
      OldCode/BetSimulateProgram/data/read_api.py
  62. 0
      OldCode/BetSimulateProgram/data/team_rating
  63. 0
      OldCode/BetSimulateProgram/data_updated.txt
  64. 0
      OldCode/BetSimulateProgram/loung_match_stat~
  65. 0
      OldCode/BetSimulateProgram/lounge_match~
  66. 0
      OldCode/BetSimulateProgram/lounge_odds~
  67. 0
      OldCode/BetSimulateProgram/odds.txt
  68. 0
      OldCode/BetSimulateProgram/roster_change.txt
  69. 0
      OldCode/BetSimulateProgram/team_rating~
  70. 0
      OldCode/BetSimulateProgram/test1.exe
  71. 0
      OldCode/BetSimulateProgram/track_bet
  72. 0
      OldCode/ComputeRatingFunction/MainProgram.cpp
  73. 0
      OldCode/ComputeRatingFunction/Makefile
  74. 0
      OldCode/ComputeRatingFunction/basicClassImplement.cpp
  75. 0
      OldCode/ComputeRatingFunction/basicClasses.h
  76. 0
      OldCode/ComputeRatingFunction/matchIndex_updated.txt
  77. 0
      OldCode/ComputeRatingFunction/program
  78. 0
      OldCode/ComputeRatingFunction/program.exe
  79. 0
      OldCode/ComputeRatingFunction/r1.txt
  80. 0
      OldCode/ComputeRatingFunction/r3.txt
  81. 0
      OldCode/ComputeRatingFunction/rosterChange.txt
  82. 0
      OldCode/ComputeRatingFunction/scoreFrequency.txt
  83. 0
      OldCode/ComputeRatingFunction/teamList_updated.txt
  84. 0
      OldCode/ComputeRatingFunction/test.txt
  85. 0
      OldCode/ComputeRatingFunction/weightClassImplement.cpp
  86. 0
      OldCode/ComputeRatingFunction/weightClasses.h
  87. 0
      OldCode/FindRating/MainProgram.cpp
  88. 0
      OldCode/FindRating/Makefile
  89. 0
      OldCode/FindRating/basicClassImplement.cpp
  90. 0
      OldCode/FindRating/basicClasses.h
  91. 0
      OldCode/FindRating/matchIndex_updated.txt
  92. 0
      OldCode/FindRating/program
  93. 0
      OldCode/FindRating/program.exe
  94. 0
      OldCode/FindRating/r1.txt
  95. 0
      OldCode/FindRating/r3.txt
  96. 0
      OldCode/FindRating/rosterChange.txt
  97. 0
      OldCode/FindRating/scoreFrequency.txt
  98. 0
      OldCode/FindRating/teamList_updated.txt
  99. 0
      OldCode/FindRating/test.txt
  100. 0
      OldCode/FindRating/weightClassImplement.cpp
  101. Some files were not shown because too many files have changed in this diff Show More

7
NewCode/rating-system/neighbor.py

@ -0,0 +1,7 @@
class Neighbor(object):
"""docstring for Neighbor"""
def __init__(self, name):
super(Neighbor, self).__init__()
self.name = name
self.match = 0

23
NewCode/rating-system/team.py

@ -0,0 +1,23 @@
class Team(object):
def __init__(self, name):
super(Neighbor, self).__init__()
self.name = name
self.rating = 1200
self.match = 0
self.neighbors = []
def updateRating(self, delta=0):
self.rating += delta
def incrementMatch(self):
self.match++
# Getters
def getName(self):
return self.name
def getRating(self):
return self.rating
def getMatch(self):
return self.match
def getNeighbor(self):
return self.neighbors

0
BetSimulateProgram/CMakeLists.txt → OldCode/BetSimulateProgram/CMakeLists.txt

0
BetSimulateProgram/CMakeLists.txt~ → OldCode/BetSimulateProgram/CMakeLists.txt~

0
BetSimulateProgram/Hashtable.cpp → OldCode/BetSimulateProgram/Hashtable.cpp

0
BetSimulateProgram/Hashtable.h → OldCode/BetSimulateProgram/Hashtable.h

0
BetSimulateProgram/Main → OldCode/BetSimulateProgram/Main

0
BetSimulateProgram/MatchUpdate.cpp → OldCode/BetSimulateProgram/MatchUpdate.cpp

0
BetSimulateProgram/Simulation.cpp → OldCode/BetSimulateProgram/Simulation.cpp

0
BetSimulateProgram/Simulation.o → OldCode/BetSimulateProgram/Simulation.o

0
BetSimulateProgram/Team.cpp → OldCode/BetSimulateProgram/Team.cpp

0
BetSimulateProgram/Team.h → OldCode/BetSimulateProgram/Team.h

0
BetSimulateProgram/TeamUpdate.cpp → OldCode/BetSimulateProgram/TeamUpdate.cpp

0
BetSimulateProgram/build/CMakeCache.txt → OldCode/BetSimulateProgram/build/CMakeCache.txt

0
BetSimulateProgram/build/CMakeFiles/2.8.12.2/CMakeCCompiler.cmake → OldCode/BetSimulateProgram/build/CMakeFiles/2.8.12.2/CMakeCCompiler.cmake

0
BetSimulateProgram/build/CMakeFiles/2.8.12.2/CMakeCXXCompiler.cmake → OldCode/BetSimulateProgram/build/CMakeFiles/2.8.12.2/CMakeCXXCompiler.cmake

0
BetSimulateProgram/build/CMakeFiles/2.8.12.2/CMakeDetermineCompilerABI_C.bin → OldCode/BetSimulateProgram/build/CMakeFiles/2.8.12.2/CMakeDetermineCompilerABI_C.bin

0
BetSimulateProgram/build/CMakeFiles/2.8.12.2/CMakeDetermineCompilerABI_CXX.bin → OldCode/BetSimulateProgram/build/CMakeFiles/2.8.12.2/CMakeDetermineCompilerABI_CXX.bin

0
BetSimulateProgram/build/CMakeFiles/2.8.12.2/CMakeSystem.cmake → OldCode/BetSimulateProgram/build/CMakeFiles/2.8.12.2/CMakeSystem.cmake

0
BetSimulateProgram/build/CMakeFiles/2.8.12.2/CompilerIdC/CMakeCCompilerId.c → OldCode/BetSimulateProgram/build/CMakeFiles/2.8.12.2/CompilerIdC/CMakeCCompilerId.c

0
BetSimulateProgram/build/CMakeFiles/2.8.12.2/CompilerIdC/a.out → OldCode/BetSimulateProgram/build/CMakeFiles/2.8.12.2/CompilerIdC/a.out

0
BetSimulateProgram/build/CMakeFiles/2.8.12.2/CompilerIdCXX/CMakeCXXCompilerId.cpp → OldCode/BetSimulateProgram/build/CMakeFiles/2.8.12.2/CompilerIdCXX/CMakeCXXCompilerId.cpp

0
BetSimulateProgram/build/CMakeFiles/2.8.12.2/CompilerIdCXX/a.out → OldCode/BetSimulateProgram/build/CMakeFiles/2.8.12.2/CompilerIdCXX/a.out

0
BetSimulateProgram/build/CMakeFiles/CMakeDirectoryInformation.cmake → OldCode/BetSimulateProgram/build/CMakeFiles/CMakeDirectoryInformation.cmake

0
BetSimulateProgram/build/CMakeFiles/CMakeOutput.log → OldCode/BetSimulateProgram/build/CMakeFiles/CMakeOutput.log

0
BetSimulateProgram/build/CMakeFiles/Main.dir/CXX.includecache → OldCode/BetSimulateProgram/build/CMakeFiles/Main.dir/CXX.includecache

0
BetSimulateProgram/build/CMakeFiles/Main.dir/DependInfo.cmake → OldCode/BetSimulateProgram/build/CMakeFiles/Main.dir/DependInfo.cmake

0
BetSimulateProgram/build/CMakeFiles/Main.dir/Hashtable.cpp.o → OldCode/BetSimulateProgram/build/CMakeFiles/Main.dir/Hashtable.cpp.o

0
BetSimulateProgram/build/CMakeFiles/Main.dir/MatchUpdate.cpp.o → OldCode/BetSimulateProgram/build/CMakeFiles/Main.dir/MatchUpdate.cpp.o

0
BetSimulateProgram/build/CMakeFiles/Main.dir/Simulation.cpp.o → OldCode/BetSimulateProgram/build/CMakeFiles/Main.dir/Simulation.cpp.o

0
BetSimulateProgram/build/CMakeFiles/Main.dir/Team.cpp.o → OldCode/BetSimulateProgram/build/CMakeFiles/Main.dir/Team.cpp.o

0
BetSimulateProgram/build/CMakeFiles/Main.dir/TeamUpdate.cpp.o → OldCode/BetSimulateProgram/build/CMakeFiles/Main.dir/TeamUpdate.cpp.o

0
BetSimulateProgram/build/CMakeFiles/Main.dir/build.make → OldCode/BetSimulateProgram/build/CMakeFiles/Main.dir/build.make

0
BetSimulateProgram/build/CMakeFiles/Main.dir/cmake_clean.cmake → OldCode/BetSimulateProgram/build/CMakeFiles/Main.dir/cmake_clean.cmake

0
BetSimulateProgram/build/CMakeFiles/Main.dir/depend.internal → OldCode/BetSimulateProgram/build/CMakeFiles/Main.dir/depend.internal

0
BetSimulateProgram/build/CMakeFiles/Main.dir/depend.make → OldCode/BetSimulateProgram/build/CMakeFiles/Main.dir/depend.make

0
BetSimulateProgram/build/CMakeFiles/Main.dir/flags.make → OldCode/BetSimulateProgram/build/CMakeFiles/Main.dir/flags.make

0
BetSimulateProgram/build/CMakeFiles/Main.dir/link.txt → OldCode/BetSimulateProgram/build/CMakeFiles/Main.dir/link.txt

0
BetSimulateProgram/build/CMakeFiles/Main.dir/progress.make → OldCode/BetSimulateProgram/build/CMakeFiles/Main.dir/progress.make

0
BetSimulateProgram/build/CMakeFiles/Makefile.cmake → OldCode/BetSimulateProgram/build/CMakeFiles/Makefile.cmake

0
BetSimulateProgram/build/CMakeFiles/Makefile2 → OldCode/BetSimulateProgram/build/CMakeFiles/Makefile2

0
BetSimulateProgram/build/CMakeFiles/Progress/1 → OldCode/BetSimulateProgram/build/CMakeFiles/Progress/1

0
BetSimulateProgram/build/CMakeFiles/Progress/2 → OldCode/BetSimulateProgram/build/CMakeFiles/Progress/2

0
BetSimulateProgram/build/CMakeFiles/Progress/3 → OldCode/BetSimulateProgram/build/CMakeFiles/Progress/3

0
BetSimulateProgram/build/CMakeFiles/Progress/4 → OldCode/BetSimulateProgram/build/CMakeFiles/Progress/4

0
BetSimulateProgram/build/CMakeFiles/Progress/5 → OldCode/BetSimulateProgram/build/CMakeFiles/Progress/5

0
BetSimulateProgram/build/CMakeFiles/Progress/count.txt → OldCode/BetSimulateProgram/build/CMakeFiles/Progress/count.txt

0
BetSimulateProgram/build/CMakeFiles/TargetDirectories.txt → OldCode/BetSimulateProgram/build/CMakeFiles/TargetDirectories.txt

0
BetSimulateProgram/build/CMakeFiles/cmake.check_cache → OldCode/BetSimulateProgram/build/CMakeFiles/cmake.check_cache

0
BetSimulateProgram/build/CMakeFiles/progress.marks → OldCode/BetSimulateProgram/build/CMakeFiles/progress.marks

0
BetSimulateProgram/build/Main → OldCode/BetSimulateProgram/build/Main

0
BetSimulateProgram/build/Makefile → OldCode/BetSimulateProgram/build/Makefile

0
BetSimulateProgram/build/cmake_install.cmake → OldCode/BetSimulateProgram/build/cmake_install.cmake

0
BetSimulateProgram/data/change_data.py → OldCode/BetSimulateProgram/data/change_data.py

0
BetSimulateProgram/data/data_updated → OldCode/BetSimulateProgram/data/data_updated

0
BetSimulateProgram/data/lounge_match → OldCode/BetSimulateProgram/data/lounge_match

0
BetSimulateProgram/data/lounge_match_stat → OldCode/BetSimulateProgram/data/lounge_match_stat

0
BetSimulateProgram/data/lounge_odds → OldCode/BetSimulateProgram/data/lounge_odds

0
BetSimulateProgram/data/lounge_odds_fixed → OldCode/BetSimulateProgram/data/lounge_odds_fixed

0
BetSimulateProgram/data/lounge_odds~ → OldCode/BetSimulateProgram/data/lounge_odds~

0
BetSimulateProgram/data/read_api.py → OldCode/BetSimulateProgram/data/read_api.py

0
BetSimulateProgram/data/team_rating → OldCode/BetSimulateProgram/data/team_rating

0
BetSimulateProgram/data_updated.txt → OldCode/BetSimulateProgram/data_updated.txt

0
BetSimulateProgram/loung_match_stat~ → OldCode/BetSimulateProgram/loung_match_stat~

0
BetSimulateProgram/lounge_match~ → OldCode/BetSimulateProgram/lounge_match~

0
BetSimulateProgram/lounge_odds~ → OldCode/BetSimulateProgram/lounge_odds~

0
BetSimulateProgram/odds.txt → OldCode/BetSimulateProgram/odds.txt

0
BetSimulateProgram/roster_change.txt → OldCode/BetSimulateProgram/roster_change.txt

0
BetSimulateProgram/team_rating~ → OldCode/BetSimulateProgram/team_rating~

0
BetSimulateProgram/test1.exe → OldCode/BetSimulateProgram/test1.exe

0
BetSimulateProgram/track_bet → OldCode/BetSimulateProgram/track_bet

0
ComputeRatingFunction/MainProgram.cpp → OldCode/ComputeRatingFunction/MainProgram.cpp

0
ComputeRatingFunction/Makefile → OldCode/ComputeRatingFunction/Makefile

0
ComputeRatingFunction/basicClassImplement.cpp → OldCode/ComputeRatingFunction/basicClassImplement.cpp

0
ComputeRatingFunction/basicClasses.h → OldCode/ComputeRatingFunction/basicClasses.h

0
ComputeRatingFunction/matchIndex_updated.txt → OldCode/ComputeRatingFunction/matchIndex_updated.txt

0
ComputeRatingFunction/program → OldCode/ComputeRatingFunction/program

0
ComputeRatingFunction/program.exe → OldCode/ComputeRatingFunction/program.exe

0
ComputeRatingFunction/r1.txt → OldCode/ComputeRatingFunction/r1.txt

0
ComputeRatingFunction/r3.txt → OldCode/ComputeRatingFunction/r3.txt

0
ComputeRatingFunction/rosterChange.txt → OldCode/ComputeRatingFunction/rosterChange.txt

0
ComputeRatingFunction/scoreFrequency.txt → OldCode/ComputeRatingFunction/scoreFrequency.txt

0
ComputeRatingFunction/teamList_updated.txt → OldCode/ComputeRatingFunction/teamList_updated.txt

0
ComputeRatingFunction/test.txt → OldCode/ComputeRatingFunction/test.txt

0
ComputeRatingFunction/weightClassImplement.cpp → OldCode/ComputeRatingFunction/weightClassImplement.cpp

0
ComputeRatingFunction/weightClasses.h → OldCode/ComputeRatingFunction/weightClasses.h

0
FindRating/MainProgram.cpp → OldCode/FindRating/MainProgram.cpp

0
FindRating/Makefile → OldCode/FindRating/Makefile

0
FindRating/basicClassImplement.cpp → OldCode/FindRating/basicClassImplement.cpp

0
FindRating/basicClasses.h → OldCode/FindRating/basicClasses.h

0
FindRating/matchIndex_updated.txt → OldCode/FindRating/matchIndex_updated.txt

0
FindRating/program → OldCode/FindRating/program

0
FindRating/program.exe → OldCode/FindRating/program.exe

0
FindRating/r1.txt → OldCode/FindRating/r1.txt

0
FindRating/r3.txt → OldCode/FindRating/r3.txt

0
FindRating/rosterChange.txt → OldCode/FindRating/rosterChange.txt

0
FindRating/scoreFrequency.txt → OldCode/FindRating/scoreFrequency.txt

0
FindRating/teamList_updated.txt → OldCode/FindRating/teamList_updated.txt

0
FindRating/test.txt → OldCode/FindRating/test.txt

0
FindRating/weightClassImplement.cpp → OldCode/FindRating/weightClassImplement.cpp

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save