summaryrefslogtreecommitdiff
path: root/comp.c
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-04-20 06:00:00 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-04-20 06:00:00 -0700
commit36b74c04154cdecba1f999f5b358874502755cd0 (patch)
tree21bac2ca5dc251e18ec3b2e9a878bb110ecb8b6e /comp.c
parent6d399b63a4d0f29169c06e119fc56fce465c4a55 (diff)
downloaddartboat-36b74c04154cdecba1f999f5b358874502755cd0.tar.gz
dartboat-36b74c04154cdecba1f999f5b358874502755cd0.tar.xz
add function to test three-dart averages
Diffstat (limited to 'comp.c')
-rw-r--r--comp.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/comp.c b/comp.c
index 13b21a6..4932e37 100644
--- a/comp.c
+++ b/comp.c
@@ -7,8 +7,7 @@
#include <stdbool.h>
#include <stdlib.h>
-#define HORIZONTAL_STDEV 24
-#define VERTICAL_STDEV 24
+int horizontal_stdev = 24, vertical_stdev = 24;
double drand()
{
@@ -38,8 +37,8 @@ double gauss(double mean, double stdev)
struct ccoords get_offset()
{
- return (struct ccoords){ .x = gauss(0, HORIZONTAL_STDEV),
- .y = gauss(0, VERTICAL_STDEV) };
+ return (struct ccoords){ .x = gauss(0, horizontal_stdev),
+ .y = gauss(0, vertical_stdev) };
}
struct ccoords pol_to_cart(struct pcoords c)