]> iEval git - gruntmaster-daemon.git/blame - lib/Gruntmaster/Daemon/Judge/Points.pm
Update PREREQ_PM
[gruntmaster-daemon.git] / lib / Gruntmaster / Daemon / Judge / Points.pm
CommitLineData
5c5cd38a
MG
1package Gruntmaster::Daemon::Judge::Points;
2
3use 5.014000;
4use strict;
5use warnings;
6
7use Gruntmaster::Daemon::Constants qw/AC REJ/;
8use List::Util qw/sum/;
9use Log::Log4perl qw/get_logger/;
10our $VERSION = '0.001';
11
12##################################################
13
14sub judge{
15 no warnings qw/numeric/;
16 get_logger->trace("Judging results: @_");
ab436d78 17 my $points = sum 0, grep { !ref } @_;
5c5cd38a
MG
18 $points == 100 ? (result => AC, result_text => 'Accepted') : (result => REJ, result_text => "$points points", points => $points)
19}
20
211
This page took 0.024128 seconds and 4 git commands to generate.