This repository was archived by the owner on Oct 23, 2019. It is now read-only.
  
  
  
            
  
    
      forked from edwardslabs/CloudBot
    
        
        - 
                Notifications
    
You must be signed in to change notification settings  - Fork 50
 
Refactored gaming plugin for project consistency and rewrote coin flip function #391
          
     Open
      
      
            leonthemisfit
  wants to merge
  23
  commits into
  snoonetIRC:gonzobot
  
    
      
        
          
  
    
      Choose a base branch
      
     
    
      
        
      
      
        
          
          
        
        
          
            
              
              
              
  
           
        
        
          
            
              
              
           
        
       
     
  
        
          
            
          
            
          
        
       
    
      
from
leonthemisfit:gonzobot+gaming
  
      
      
   
  
    
  
  
  
 
  
      
    base: gonzobot
Could not load branches
            
              
  
    Branch not found: {{ refName }}
  
            
                
      Loading
              
            Could not load tags
            
            
              Nothing to show
            
              
  
            
                
      Loading
              
            Are you sure you want to change the base?
            Some commits from the old base branch may be removed from the timeline,
            and old review comments may become outdated.
          
          
  
     Open
                    Changes from all commits
      Commits
    
    
            Show all changes
          
          
            23 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      d62011f
              
                Updated gaming plugin docstrings
              
              
                leonthemisfit 716ac87
              
                Refactored coin function to use string constants
              
              
                leonthemisfit b03af56
              
                Rewrote coin flip to use a cleaner method
              
              
                leonthemisfit 81a0d70
              
                Removed clamp function from gaming plugin
              
              
                leonthemisfit f94fed1
              
                Added leonthemisfit to modified by
              
              
                leonthemisfit 8dd899f
              
                Fixed comparison typo and added roll limit const to gaming plugin
              
              
                leonthemisfit 87c029f
              
                Updated format strings to remove ' literals and added invalid roll const
              
              
                leonthemisfit 5306151
              
                Fixed incorrect roll count comparison
              
              
                leonthemisfit 46702b9
              
                Added fudge approximation and refactored to match change
              
              
                leonthemisfit 7d40650
              
                Patches bug with bounds checking in .dice command
              
              
                leonthemisfit 5051659
              
                Fixed fudge dice issues with simulated rolls
              
              
                leonthemisfit 29fd437
              
                Moved approximation explanation to a clearer location
              
              
                leonthemisfit a6ed38c
              
                Refactored n_rolls to have clearer param names
              
              
                leonthemisfit fcb5ce2
              
                Changed calls to int to calls to round
              
              
                leonthemisfit c32a1c3
              
                Added returned type to nrolls
              
              
                leonthemisfit 1c71176
              
                Moved approximation formulas to separate functions
              
              
                leonthemisfit 7dc404e
              
                Moved approximation to separate function
              
              
                leonthemisfit 1036375
              
                Moved dice roll simulation to its own function
              
              
                leonthemisfit a0c4984
              
                Refactored n_rolls to follow SESE
              
              
                leonthemisfit cc2dfa9
              
                Rounded results of find_variance function
              
              
                leonthemisfit 685be6a
              
                Rounded the result of find_adjusted_variance()
              
              
                leonthemisfit f4834c0
              
                Added tests to utility function docstrings
              
              
                leonthemisfit 46245e9
              
                Updated tests so they correct pass in travis
              
              
                leonthemisfit File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Uh oh!
There was an error while loading. Please reload this page.