diff --git a/README.md b/README.md index 1b5dadd..0010c7e 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,19 @@ # EarlDescent +A website that helps you get the most points in Countdown. -A website that supposedly helps you get the most points in Countdown. +## Installation -Credits +Download contents of public folder. -- Isaac O -- Thomas Calland -- Méabh Carragher (kind of helped i guess :/ ) +## Usage + +Accurate mode uses a 500k dictionary that is laborious to run; fast fetches a 10k dictionary. Both do not modify the rude word dictionary. +Just type in the input box for an output. + +## Contributing +Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. + +Please make sure to update tests as appropriate. + +## License +[MIT](https://choosealicense.com/licenses/mit/) diff --git a/__pycache__/solver.cpython-34.pyc b/__pycache__/solver.cpython-34.pyc deleted file mode 100644 index 03f738a..0000000 Binary files a/__pycache__/solver.cpython-34.pyc and /dev/null differ diff --git a/__pycache__/solver.cpython-36.pyc b/__pycache__/solver.cpython-36.pyc deleted file mode 100644 index 4dfd880..0000000 Binary files a/__pycache__/solver.cpython-36.pyc and /dev/null differ diff --git a/.gitignore b/deprecated/.gitignore similarity index 100% rename from .gitignore rename to deprecated/.gitignore diff --git a/deprecated/LICENSE b/deprecated/LICENSE new file mode 100644 index 0000000..040dc74 --- /dev/null +++ b/deprecated/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2019 CodeGuild + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/Procfile b/deprecated/Procfile similarity index 100% rename from Procfile rename to deprecated/Procfile diff --git a/deprecated/README.md b/deprecated/README.md new file mode 100644 index 0000000..1b5dadd --- /dev/null +++ b/deprecated/README.md @@ -0,0 +1,9 @@ +# EarlDescent + +A website that supposedly helps you get the most points in Countdown. + +Credits + +- Isaac O +- Thomas Calland +- Méabh Carragher (kind of helped i guess :/ ) diff --git a/dictionary.txt b/deprecated/dictionary.txt similarity index 100% rename from dictionary.txt rename to deprecated/dictionary.txt diff --git a/requirements.txt b/deprecated/requirements.txt similarity index 100% rename from requirements.txt rename to deprecated/requirements.txt diff --git a/server.py b/deprecated/server.py similarity index 100% rename from server.py rename to deprecated/server.py diff --git a/solver.py b/deprecated/solver.py similarity index 100% rename from solver.py rename to deprecated/solver.py diff --git a/static/index.css b/deprecated/static/index.css similarity index 100% rename from static/index.css rename to deprecated/static/index.css diff --git a/templates/index.html b/deprecated/templates/index.html similarity index 100% rename from templates/index.html rename to deprecated/templates/index.html diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..36587d7 --- /dev/null +++ b/public/index.html @@ -0,0 +1,304 @@ + + + + + + + + + + +Countdown Solver + + + + + + + + + + + + +
+

EARL DESCENT

+

COUNTDOWN CALCULATOR FOR RUDE WORDS

+ Go to game +
+ + +
+ + + + + + + + + + + + +
           
+
+ +
+
+
+
+
+

Countdown

+
+ +
+
+ +
+
+ +
+ +
+
+
+
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
RudeRegular
__
__
__
__
__
+
+
+
+ +
+

A website that helps you get the most points in Countdown

+
+ + + + + diff --git a/public/jquery.fittext.js b/public/jquery.fittext.js new file mode 100644 index 0000000..0b3ddef --- /dev/null +++ b/public/jquery.fittext.js @@ -0,0 +1,43 @@ +/*global jQuery */ +/*! +* FitText.js 1.2 +* +* Copyright 2011, Dave Rupert http://daverupert.com +* Released under the WTFPL license +* http://sam.zoy.org/wtfpl/ +* +* Date: Thu May 05 14:23:00 2011 -0600 +*/ + +(function( $ ){ + + $.fn.fitText = function( kompressor, options ) { + + // Setup options + var compressor = kompressor || 1, + settings = $.extend({ + 'minFontSize' : Number.NEGATIVE_INFINITY, + 'maxFontSize' : Number.POSITIVE_INFINITY + }, options); + + return this.each(function(){ + + // Store the object + var $this = $(this); + + // Resizer() resizes items based on the object width divided by the compressor * 10 + var resizer = function () { + $this.css('font-size', Math.max(Math.min($this.width() / (compressor*10), parseFloat(settings.maxFontSize)), parseFloat(settings.minFontSize))); + }; + + // Call once to set. + resizer(); + + // Call on resize. Opera debounces their resize by default. + $(window).on('resize.fittext orientationchange.fittext', resizer); + + }); + + }; + +})( jQuery );