00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #include <iostream>
00016
00017 #include "dice.hpp"
00018
00019 void d1d6Test(){
00020 std::cout << "100 six sided dice rollls:" << std::endl << std::endl;
00021
00022 int ix;
00023 int iy;
00024
00025 for(ix=0;ix<10;ix++){
00026 for(iy=0;iy<10;iy++){
00027 std::cout << d1d6() << " ";
00028 }
00029 std::cout<< std::endl;
00030
00031 }
00032
00033 }
00034
00035 void d2d6Test(){
00036 std::cout << "100 dual six sided dice rolls" << std::endl << std::endl;
00037
00038 int ix;
00039 int iy;
00040
00041 for(ix=0;ix<10;ix++){
00042 for(iy=0;iy<10;iy++){
00043 std::cout << d2d6() << " ";
00044 }
00045 std::cout<< std::endl;
00046
00047 }
00048 }
00049
00050
00051 int main()
00052 {
00053 std::cout << "Testing the dice library" << std::endl;
00054 d1d6Test();
00055 d2d6Test();
00056 return 0;
00057 }